Example #1
0
        public void Test1AccessDatabaseWithModel()
        {
            var entityContext = new EntityUserContext();

            entityContext.Database.Create();

            var db       = entityContext.Database;
            var dbExists = db.Exists();

            entityContext.EntityUsers.Add(new EntityUser {
                UserId   = 1234,
                Nickname = "innfi",
                Rank     = 5,
            });

            var result = entityContext.SaveChanges();

            Assert.AreEqual(result, 0);
        }
Example #2
0
 public void Test0InitEntityModel()
 {
     var entityContext = new EntityUserContext();
 }