public void TestInit() { repo = new EFRepositoryService<Entities>(); repo.DeleteAll<EFTestData>(); testData = Builder<EFTestData>.CreateNew().With(a => a.Id = Guid.Empty).Build(); repo.Save(ref testData); }
public void TestInit() { repo = new EFRepositoryService <Entities>(); repo.DeleteAll <EFTestData>(); testData = Builder <EFTestData> .CreateNew().With(a => a.Id = Guid.Empty).Build(); repo.Save(ref testData); }
/// <summary> /// Create a new EFTestData object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="timestamp">Initial value of the Timestamp property.</param> /// <param name="testString">Initial value of the TestString property.</param> public static EFTestData CreateEFTestData(global::System.Guid id, global::System.DateTime timestamp, global::System.String testString) { EFTestData eFTestData = new EFTestData(); eFTestData.Id = id; eFTestData.Timestamp = timestamp; eFTestData.TestString = testString; return(eFTestData); }
/// <summary> /// Deprecated Method for adding a new object to the EFTestDatas EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEFTestDatas(EFTestData eFTestData) { base.AddObject("EFTestDatas", eFTestData); }
/// <summary> /// Create a new EFTestData object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="timestamp">Initial value of the Timestamp property.</param> /// <param name="testString">Initial value of the TestString property.</param> public static EFTestData CreateEFTestData(global::System.Guid id, global::System.DateTime timestamp, global::System.String testString) { EFTestData eFTestData = new EFTestData(); eFTestData.Id = id; eFTestData.Timestamp = timestamp; eFTestData.TestString = testString; return eFTestData; }