コード例 #1
0
 private static void ChangeTest(MyPoco poco1, Repository <MyPoco> rep, UnitOfWork uow)
 {
     poco1.Content = "Test - was changed";
     rep.Change(poco1);
     uow.Commit();
     DumpTest(rep);
 }
コード例 #2
0
        private static void addTest(Repository <MyPoco> rep, UnitOfWork uow)
        {
            var mypoco = new MyPoco()
            {
                Content = "Test" + System.DateTime.Now.ToString(CultureInfo.InvariantCulture),
            };

            rep.Add(mypoco);
            uow.Commit();
            DumpTest(rep);
        }