Click here to Skip to main content
15,845,785 members
Home / Discussions / C#
   

C#

 
AnswerRe: 3d calculations Pin
Richard Deeming31-Oct-16 4:53
mveRichard Deeming31-Oct-16 4:53 
GeneralRe: 3d calculations Pin
Bernhard Hiller31-Oct-16 6:18
Bernhard Hiller31-Oct-16 6:18 
QuestionCan save directly from the DataTable into the Table of Access 2000 ? Pin
Member 245846730-Oct-16 16:56
Member 245846730-Oct-16 16:56 
AnswerRe: Can save directly from the DataTable into the Table of Access 2000 ? Pin
Dave Kreskowiak30-Oct-16 18:49
mveDave Kreskowiak30-Oct-16 18:49 
QuestionC# System Information Pin
Pavlex430-Oct-16 9:02
Pavlex430-Oct-16 9:02 
AnswerRe: C# System Information Pin
NotPolitcallyCorrect30-Oct-16 10:02
NotPolitcallyCorrect30-Oct-16 10:02 
AnswerRe: C# System Information Pin
shahidul.haq2-Nov-16 12:18
shahidul.haq2-Nov-16 12:18 
QuestionColumnMapping to properties of an class object Pin
hpjchobbes29-Oct-16 11:57
hpjchobbes29-Oct-16 11:57 
I have a class like so:
C#
public class BaseRef
{
    public int id {get; set;}
    public string listID {get; set;}
    public string Name {get; set;}
}

And have a data column that is of type BaseRef that I added to a DataTable:
=c#
this.Columns.Add(new DataColumn("ParentRef", typeof(BaseRef)));

I am using OdbcDataAdapter to get a query, but in this case my query has three separate columns for the id, listID and Name fields of the Parent:
SELECT id, listID, Name FROM ParentTable

I tried to setup a DataAdapterTableMapping and add ColumnMappings, but it doesn't appear that I can map a source column to a property of a class column. I tried:
C#
mapping.ColumnMappings.Add("id", "ParentRef.id");
mapping.ColumnMappings.Add("listID", "ParentRef.listID");
mapping.ColumnMappings.Add("Name", "ParentRef.Name");

Is there a way to get the mapping to map to the properties of my class?
AnswerRe: ColumnMapping to properties of an class object Pin
Richard Deeming31-Oct-16 4:45
mveRichard Deeming31-Oct-16 4:45 
QuestionEntity FrameWork Code First to create Table on schema other than dbo Pin
indian14326-Oct-16 10:40
indian14326-Oct-16 10:40 
AnswerRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
Richard Deeming27-Oct-16 3:05
mveRichard Deeming27-Oct-16 3:05 
GeneralRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
indian14327-Oct-16 12:43
indian14327-Oct-16 12:43 
GeneralRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
Richard Deeming28-Oct-16 3:16
mveRichard Deeming28-Oct-16 3:16 
AnswerRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
Slacker00727-Oct-16 3:17
professionalSlacker00727-Oct-16 3:17 
GeneralRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
indian14327-Oct-16 13:02
indian14327-Oct-16 13:02 
QuestionC# Active Directory Services Pin
Member 80737426-Oct-16 9:43
Member 80737426-Oct-16 9:43 
QuestionC# ActiveDirectory Services Pin
Member 80737426-Oct-16 9:41
Member 80737426-Oct-16 9:41 
QuestionStitching Together Thousands Of Bitmaps Pin
JBHowl20-Oct-16 7:26
JBHowl20-Oct-16 7:26 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
OriginalGriff20-Oct-16 7:53
mveOriginalGriff20-Oct-16 7:53 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Midi_Mick20-Oct-16 7:54
professionalMidi_Mick20-Oct-16 7:54 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Gerry Schmitz20-Oct-16 8:45
mveGerry Schmitz20-Oct-16 8:45 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Eddy Vluggen20-Oct-16 11:55
professionalEddy Vluggen20-Oct-16 11:55 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Pete O'Hanlon20-Oct-16 22:18
subeditorPete O'Hanlon20-Oct-16 22:18 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
JBHowl21-Oct-16 4:26
JBHowl21-Oct-16 4:26 
GeneralRe: Stitching Together Thousands Of Bitmaps Pin
Eddy Vluggen21-Oct-16 4:50
professionalEddy Vluggen21-Oct-16 4:50 

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.