public override string Differentiate() { return("(" + ChildOne.Differentiate() + ")(" + strChildTwo + ")+(" + strChildOne + ")(" + ChildTwo.Differentiate() + ")"); }
public void EntityInheritInsertTest() { using (var repo = RepositoryContext.GetRepository()) { var childOne = new ChildOne() { ID = Guid.Parse("B2DD9317-7A40-4D44-A5C6-26DCA237E093"), FirstName = "clildOneFN_0927", LastName = "clildOneLN_0927", Email = "*****@*****.**" }; var childTwo = new ChildTwo() { ID = Guid.Parse("B2DD9317-7A40-4D44-A5C6-26DCA237E091"), FirstName = "clildOneFN_0927", LastName = "clildOneLN_0927", Number = "13305310001" }; repo.Add(childOne); repo.Add(childTwo); repo.SaveChanges(); } }