예제 #1
0
        public void IsnertOrUpdateTest()
        {
            var db          = DatabaseHelper.GetHelper("test");
            var repos       = new RepositoryDatabase <UserProfile>(db);
            var userprofile = Map.Create <UserProfile>();

            userprofile.Id       = 1;
            userprofile.Name     = "test";
            userprofile.Email    = "*****@*****.**";
            userprofile.FixPhone = "860108888888";
            userprofile.Sex      = 1;
            repos.Save(userprofile);
        }