Click here to Skip to main content
15,887,474 members
Home / Discussions / C#
   

C#

 
AnswerRe: 3d calculations Pin
Richard Deeming31-Oct-16 3:53
mveRichard Deeming31-Oct-16 3:53 
GeneralRe: 3d calculations Pin
Bernhard Hiller31-Oct-16 5:18
Bernhard Hiller31-Oct-16 5:18 
QuestionCan save directly from the DataTable into the Table of Access 2000 ? Pin
Member 245846730-Oct-16 15:56
Member 245846730-Oct-16 15:56 
AnswerRe: Can save directly from the DataTable into the Table of Access 2000 ? Pin
Dave Kreskowiak30-Oct-16 17:49
mveDave Kreskowiak30-Oct-16 17:49 
QuestionC# System Information Pin
Pavlex430-Oct-16 8:02
Pavlex430-Oct-16 8:02 
AnswerRe: C# System Information Pin
NotPolitcallyCorrect30-Oct-16 9:02
NotPolitcallyCorrect30-Oct-16 9:02 
AnswerRe: C# System Information Pin
shahidul.haq2-Nov-16 11:18
shahidul.haq2-Nov-16 11:18 
QuestionColumnMapping to properties of an class object Pin
hpjchobbes29-Oct-16 10:57
hpjchobbes29-Oct-16 10: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 3:45
mveRichard Deeming31-Oct-16 3:45 
QuestionEntity FrameWork Code First to create Table on schema other than dbo Pin
indian14326-Oct-16 9:40
indian14326-Oct-16 9:40 
AnswerRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
Richard Deeming27-Oct-16 2:05
mveRichard Deeming27-Oct-16 2:05 
GeneralRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
indian14327-Oct-16 11:43
indian14327-Oct-16 11:43 
GeneralRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
Richard Deeming28-Oct-16 2:16
mveRichard Deeming28-Oct-16 2:16 
AnswerRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
Slacker00727-Oct-16 2:17
professionalSlacker00727-Oct-16 2:17 
GeneralRe: Entity FrameWork Code First to create Table on schema other than dbo Pin
indian14327-Oct-16 12:02
indian14327-Oct-16 12:02 
QuestionC# Active Directory Services Pin
Member 80737426-Oct-16 8:43
Member 80737426-Oct-16 8:43 
QuestionC# ActiveDirectory Services Pin
Member 80737426-Oct-16 8:41
Member 80737426-Oct-16 8:41 
QuestionStitching Together Thousands Of Bitmaps Pin
JBHowl20-Oct-16 6:26
JBHowl20-Oct-16 6:26 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
OriginalGriff20-Oct-16 6:53
mveOriginalGriff20-Oct-16 6:53 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Midi_Mick20-Oct-16 6:54
professionalMidi_Mick20-Oct-16 6:54 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Gerry Schmitz20-Oct-16 7:45
mveGerry Schmitz20-Oct-16 7:45 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Eddy Vluggen20-Oct-16 10:55
professionalEddy Vluggen20-Oct-16 10:55 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Pete O'Hanlon20-Oct-16 21:18
mvePete O'Hanlon20-Oct-16 21:18 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
JBHowl21-Oct-16 3:26
JBHowl21-Oct-16 3:26 
GeneralRe: Stitching Together Thousands Of Bitmaps Pin
Eddy Vluggen21-Oct-16 3:50
professionalEddy Vluggen21-Oct-16 3: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.