示例#1
0
        public virtual DynamicDictionary GetAsDictionary(DbConnect con, TKey id)
        {
            DynamicDictionary item = CrudRepo.Get(con, id);

            if (CrudRepo.Errors.Count > 0)
            {
                Errors.AddRange(CrudRepo.Errors);
                return(null);
            }
            return(item);
        }
示例#2
0
 private DummyA SaveAndRetrieve(DummyA x)
 {
     repo.Save(x);
     return(repo.Get(x.Id));
 }