예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EFTestDatas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEFTestDatas(EFTestData eFTestData)
 {
     base.AddObject("EFTestDatas", eFTestData);
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EFTestDatas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEFTestDatas(EFTestData eFTestData)
 {
     base.AddObject("EFTestDatas", eFTestData);
 }