Click here to Skip to main content
15,911,039 members
Home / Discussions / C#
   

C#

 
AnswerRe: Team Foundation Server Pin
egenis16-Sep-09 18:28
egenis16-Sep-09 18:28 
QuestionHow to add table's content from one to another table Pin
dwark10616-Sep-09 16:21
dwark10616-Sep-09 16:21 
AnswerRe: How to add table's content from one to another table Pin
Christian Graus16-Sep-09 17:27
protectorChristian Graus16-Sep-09 17:27 
GeneralRe: How to add table's content from one to another table Pin
dwark10616-Sep-09 18:09
dwark10616-Sep-09 18:09 
GeneralRe: How to add table's content from one to another table Pin
dwark10616-Sep-09 18:24
dwark10616-Sep-09 18:24 
GeneralRe: How to add table's content from one to another table Pin
N a v a n e e t h16-Sep-09 18:41
N a v a n e e t h16-Sep-09 18:41 
QuestionSystem.Drawing.Printing Issue Pin
Jason McBurney16-Sep-09 11:58
Jason McBurney16-Sep-09 11:58 
QuestionEntity-collection Pin
Oceanic67916-Sep-09 10:43
Oceanic67916-Sep-09 10:43 
Hi All Wizards....

I have this code as an entity and it is working perfectly, but now I try to create the collection for this entity... Can't seem to get it rights... Really need help on this... Thank you all in advance...

Actually, what I try to do is this... I can get only 1 record from the db back at a time, but I want to get nultiple return records from the db....

Here comes the sample codes for entity...

namespace Testing.DataLayer
{
[Serializable]
public class Selected_DocType
{
string userID;
string password;
string doctype;
string fileshortdescription;

public string UserID
{
get { return userID; }
}

public string Password
{
get { return password; }
}

public string DocType
{
get { return doctype; }
}

public string FileShortDescription
{
get { return fileshortdescription; }
}

public Selected_DocType( string userID
, string password
, string doctype
, string fileshortdescription
)
{
this.userID = userID;
this.password = password;
this.doctype = doctype;
this.fileshortdescription = fileshortdescription;
}

public static Selected_DocType GetWebSelected_DocType(string userID, string password)
{
Selected_DocType t = null;

using (SqlConnection conn = Database.CreateConnection())
{
SqlCommand cmd = StoredProcs.GetWebSelected_DocType(conn);

cmd.Parameters["userID"].Value = userID;
cmd.Parameters["password"].Value = password;
cmd.ExecuteNonQuery();

t = new Selected_DocType( userID
, password
, (string)cmd.Parameters["DocType"].Value
, (string)cmd.Parameters["FileShortDescription"].Value
);

return t;
}
}
}
}
AnswerRe: Entity-collection Pin
Not Active16-Sep-09 11:36
mentorNot Active16-Sep-09 11:36 
GeneralRe: Entity-collection Pin
Oceanic67917-Sep-09 3:08
Oceanic67917-Sep-09 3:08 
GeneralRe: Entity-collection Pin
Not Active17-Sep-09 4:07
mentorNot Active17-Sep-09 4:07 
GeneralRe: Entity-collection Pin
Oceanic67917-Sep-09 4:19
Oceanic67917-Sep-09 4:19 
AnswerRe: Entity-collection Pin
Christian Graus16-Sep-09 11:38
protectorChristian Graus16-Sep-09 11:38 
GeneralRe: Entity-collection Pin
Oceanic67917-Sep-09 3:17
Oceanic67917-Sep-09 3:17 
AnswerRe: Entity-collection Pin
Oceanic67917-Sep-09 4:25
Oceanic67917-Sep-09 4:25 
QuestionExample of Disconneted using data Adapter and Stored Procedure Pin
amaankhan16-Sep-09 7:55
amaankhan16-Sep-09 7:55 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
Not Active16-Sep-09 8:03
mentorNot Active16-Sep-09 8:03 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
Manas Bhardwaj16-Sep-09 8:42
professionalManas Bhardwaj16-Sep-09 8:42 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
EliottA16-Sep-09 9:27
EliottA16-Sep-09 9:27 
JokeRe: Example of Disconneted using data Adapter and Stored Procedure Pin
Manas Bhardwaj16-Sep-09 10:20
professionalManas Bhardwaj16-Sep-09 10:20 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
foxjazzdude16-Sep-09 9:57
foxjazzdude16-Sep-09 9:57 
QuestionI am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
amaankhan16-Sep-09 7:49
amaankhan16-Sep-09 7:49 
AnswerRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
Not Active16-Sep-09 8:03
mentorNot Active16-Sep-09 8:03 
GeneralRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
amaankhan16-Sep-09 8:19
amaankhan16-Sep-09 8:19 
GeneralRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
Dave Kreskowiak16-Sep-09 8:23
mveDave Kreskowiak16-Sep-09 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.