Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jamie Maguire 2 posts 72 karma points
    Apr 18, 2018 @ 10:51
    Jamie Maguire
    0

    Using [dbo].[cmsMember] in Entity Framework

    I am currently creating some tables on a database for an Umbraco project (separate to the Umbraco DB).

    I need one of the tables in the external DB to use the nodeId from the [dbo].[cmsMember] table in the Umbraco database.

    Usually to add a foreign key I would add something to the model like:

    public class Example {
    
        public int FKProperty { get; set; }
    
        [ForeignKey("FKProperty")]
        public FKEntity Entity { get; set; }
    
    }
    

    Is there a way to follow this same pattern with an Umbraco Member?

    Please let me know if this doesn't make sense!

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft