none
How canTPC works with foreign key? RRS feed

  • Question

  • I am trying work with two TPC structures and the base class has foreign keys. But foreign key between SPPerson  and GroupEx doesnot be created after the database generated. Could someone help to check this?

        public abstract class Person
        {
            public Person()
            {
                Groups = new List<Group>();
            }

            public Guid Uuid { get; set; }
            public ICollection<Group> Groups { get; set; }
         }

     public class SPPerson : Person;

        public abstract class Group
        {
            public Guid ID { get; set; }
            public byte[] Timestamp { get; set; }
            public Guid? PersonUuid { get; set; }
            public Person person { get; set; }
        }

     public partial class GroupEx : Group;

       

    Tuesday, May 7, 2013 11:08 AM

Answers