Click here to Skip to main content
15,891,136 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How to update Database using dataset and get the new primary key generated back in dataset. Pin
Eddy Vluggen26-Feb-09 6:13
professionalEddy Vluggen26-Feb-09 6:13 
Question[Message Deleted] Pin
lili.zd24-Feb-09 17:51
lili.zd24-Feb-09 17:51 
AnswerRe: using vb and c# in one solution simoltaneously Pin
Jon Rista24-Feb-09 18:12
Jon Rista24-Feb-09 18:12 
GeneralRe: using vb and c# in one solution simoltaneously Pin
lili.zd25-Feb-09 3:16
lili.zd25-Feb-09 3:16 
GeneralRe: using vb and c# in one solution simoltaneously Pin
Luc Pattyn25-Feb-09 3:38
sitebuilderLuc Pattyn25-Feb-09 3:38 
GeneralRe: using vb and c# in one solution simoltaneously Pin
lili.zd25-Feb-09 4:20
lili.zd25-Feb-09 4:20 
QuestionHow to change coordinates of a node/ change node shape to an image in GLEE or GraphViz/ save layout in GLEE/ GraphViz Pin
ekuloglu24-Feb-09 5:19
ekuloglu24-Feb-09 5:19 
QuestionGeneric Data Access Object Pin
snouto24-Feb-09 3:05
snouto24-Feb-09 3:05 
In MVC , we create a business object that represents a table fields may be with the same column names or with other names then create public properties to get and set those values .

that is totally fine until now .

then i want to display that Object in a grid , i will assign the datasource property to a ILIST,Ienumerable,IDataSource object like for example List< of One business objects > then the grid will iterate through the collection of objects getting every object and accessing the properties names that will reflect the column names in the grid , and the values of those properties will be assigned to the column values in the grid

like for example

<br />
// we have this business object<br />
public class Customer<br />
{<br />
    string FName;<br />
    string LName;<br />
<br />
public string FirstName<br />
{<br />
get { return this.FName;}<br />
 set { this.FName = value;}<br />
}<br />
public string LastName<br />
{<br />
   get { return this.LName;}<br />
  set { this.LName = value;}<br />
}<br />
<br />
}<br />


now to display that class to the grid i will put it into a list for example then
the grid will iterate through the list , reading each object public properties to draw the column names
the grid will have the same column names like the public properties


then accessing these properties values to display it to the grid .

i need to make a business object to be displayed in the grid but the problem is that the business object in my task doesn't have public properties , the public properties are replaced with a data structure that reads the table schema , "Generic Business Object" that is modifiable according to the table schema inside the data base

but finally i need to display each Generic Object to the data source controls like grid

Human knowledge belongs to the world.

AnswerRe: Generic Data Access Object Pin
Jon Rista24-Feb-09 6:14
Jon Rista24-Feb-09 6:14 
GeneralRe: Generic Data Access Object Pin
snouto24-Feb-09 23:19
snouto24-Feb-09 23:19 
QuestionProblem with merging assemblies using ILmerge Pin
Abhishek Kulkarni23-Feb-09 21:20
Abhishek Kulkarni23-Feb-09 21:20 
AnswerRe: Problem with merging assemblies using ILmerge Pin
ABitSmart24-Feb-09 1:22
ABitSmart24-Feb-09 1:22 
QuestionHow to block the option to see my .net code with reflection.exe ? Pin
Yanshof23-Feb-09 6:29
Yanshof23-Feb-09 6:29 
AnswerRe: How to block the option to see my .net code with reflection.exe ? Pin
EliottA23-Feb-09 7:48
EliottA23-Feb-09 7:48 
AnswerRe: How to block the option to see my .net code with reflection.exe ? Pin
Mark Churchill23-Feb-09 12:34
Mark Churchill23-Feb-09 12:34 
GeneralRe: How to block the option to see my .net code with reflection.exe ? Pin
Rob Philpott23-Feb-09 23:47
Rob Philpott23-Feb-09 23:47 
GeneralRe: How to block the option to see my .net code with reflection.exe ? Pin
Mark Churchill24-Feb-09 0:17
Mark Churchill24-Feb-09 0:17 
GeneralRe: How to block the option to see my .net code with reflection.exe ? Pin
PIEBALDconsult24-Feb-09 17:42
mvePIEBALDconsult24-Feb-09 17:42 
QuestionMultihreaded .NET app with single threaded ActiveX control? Pin
David Knechtges23-Feb-09 4:03
David Knechtges23-Feb-09 4:03 
GeneralRe: Multihreaded .NET app with single threaded ActiveX control? Pin
Luc Pattyn23-Feb-09 4:55
sitebuilderLuc Pattyn23-Feb-09 4:55 
GeneralRe: Multihreaded .NET app with single threaded ActiveX control? Pin
David Knechtges23-Feb-09 9:55
David Knechtges23-Feb-09 9:55 
QuestionCLR Stored Procedure Exception Pin
snouto23-Feb-09 1:42
snouto23-Feb-09 1:42 
AnswerRe: CLR Stored Procedure Exception Pin
Dave Kreskowiak23-Feb-09 4:35
mveDave Kreskowiak23-Feb-09 4:35 
GeneralRe: CLR Stored Procedure Exception Pin
alx.n25-Feb-09 1:49
alx.n25-Feb-09 1:49 
GeneralRe: CLR Stored Procedure Exception Pin
Dave Kreskowiak25-Feb-09 1:55
mveDave Kreskowiak25-Feb-09 1:55 

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.