protected EntityBase(IDistinctableEntity distinctableEntity) { if (distinctableEntity == null) { Id = NullId; return; } Id = distinctableEntity.Id; }
protected EntityBase(IDistinctableEntity distinctableEntity) { if (distinctableEntity == null) { Id = NullId; return; } Id = (long)distinctableEntity.GetPkValue(); }
private static void CheckIsConsistant(IDistinctableEntity book, ReferenceHolder <Book, long?> manadatory) { Assert.AreEqual(book, manadatory.Object); Assert.AreEqual(book.GetPkValue(), manadatory.Id); }
private static void CheckIsConsistant(IDistinctableEntity book, NullableReferenceHolder <Book> manadatory) { Assert.AreEqual(book, manadatory.Object); Assert.AreEqual(book.Id, manadatory.Id); }