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

.NET (Core and Framework)

 
AnswerRe: how to use datatable as Datasource with Datagridview unless datagridviewrow Pin
Richard MacCutchan29-Apr-20 4:20
mveRichard MacCutchan29-Apr-20 4:20 
QuestionThere is no Unicode byte order mark. Cannot switch to Unicode. Pin
Michele Smith20-Apr-20 13:56
MemberMichele Smith20-Apr-20 13:56 
AnswerRe: There is no Unicode byte order mark. Cannot switch to Unicode. Pin
Richard Deeming21-Apr-20 1:21
mveRichard Deeming21-Apr-20 1:21 
QuestionResource Error Pin
Member 129880739-Apr-20 19:19
MemberMember 129880739-Apr-20 19:19 
QuestionRe: Resource Error Pin
Richard MacCutchan9-Apr-20 22:37
mveRichard MacCutchan9-Apr-20 22:37 
AnswerRe: Resource Error Pin
Dave Kreskowiak10-Apr-20 7:40
mveDave Kreskowiak10-Apr-20 7:40 
AnswerRe: Resource Error Pin
Jin Vincent Necesario15-Apr-20 20:10
professionalJin Vincent Necesario15-Apr-20 20:10 
QuestionHow to know which Id belongs to which object? Pin
simpledeveloper30-Mar-20 13:29
Membersimpledeveloper30-Mar-20 13:29 
Hi all - I have 3 foreign key ids and they are coming from same table, so they are referenced with table names in the below class, now - how can I know which object refers to which ID - for example the Ids
public partial class InspectionResult
{
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
    public InspectionResult()
    {
        this.EventLogs = new HashSet<EventLog>();
        this.InspectionItems = new HashSet<InspectionItem>();
        this.InspectionResultStatCounts = new HashSet<InspectionResultStatCount>();
        this.NOVs = new HashSet<NOV>();
        this.UploadedDocuments = new HashSet<UploadedDocument>();
        this.AspNetUsers = new HashSet<AspNetUser>();
    }

    public int InspectionResultId { get; set; }

    public string EnteredById { get; set; }

    public string CreatedByUserId { get; set; }
    public string UpdatedByUserId { get; set; }

    public virtual AspNetUser AspNetUser { get; set; }
    public virtual AspNetUser AspNetUser1 { get; set; }
    public virtual AspNetUser AspNetUser2 { get; set; }

    public virtual ICollection<AspNetUser> AspNetUsers { get; set; }
}

EnteredById, CreatedByUserId, UpdatedByUserId are coming from same table AspNetUser, but how would I know which Id belongs to AspNetUser, AspNetUser1, ,AspNetUser2 and how to handle AspNetUsers object? I am using EF Database First Approach any help please - thank you.
AnswerRe: How to know which Id belongs to which object? Pin
Eddy Vluggen30-Mar-20 14:06
professionalEddy Vluggen30-Mar-20 14:06 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper30-Mar-20 20:46
Membersimpledeveloper30-Mar-20 20:46 
AnswerRe: How to know which Id belongs to which object? Pin
Richard Deeming31-Mar-20 2:10
mveRichard Deeming31-Mar-20 2:10 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper1-Apr-20 11:35
Membersimpledeveloper1-Apr-20 11:35 
GeneralRe: How to know which Id belongs to which object? Pin
Richard Deeming1-Apr-20 14:05
mveRichard Deeming1-Apr-20 14:05 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper2-Apr-20 7:30
Membersimpledeveloper2-Apr-20 7:30 
QuestionAn expression tree lambda may not contain a null propagating operator Pin
simpledeveloper27-Mar-20 22:38
Membersimpledeveloper27-Mar-20 22:38 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Richard MacCutchan28-Mar-20 0:48
mveRichard MacCutchan28-Mar-20 0:48 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Bohdan Stupak28-Mar-20 5:38
professionalBohdan Stupak28-Mar-20 5:38 
QuestionColumn length change using Entity Framework Code First Pin
simpledeveloper17-Mar-20 14:59
Membersimpledeveloper17-Mar-20 14:59 
AnswerRe: Column length change using Entity Framework Code First Pin
Gerry Schmitz17-Mar-20 17:22
mveGerry Schmitz17-Mar-20 17:22 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 4:28
Membersimpledeveloper18-Mar-20 4:28 
AnswerRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 0:52
mveRichard Deeming18-Mar-20 0:52 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 4:14
Membersimpledeveloper18-Mar-20 4:14 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 4:55
mveRichard Deeming18-Mar-20 4:55 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 9:43
Membersimpledeveloper18-Mar-20 9:43 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 9:48
mveRichard Deeming18-Mar-20 9:48 

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.