Ejemplo n.º 1
0
 public bool IsExists <T>(object id) where T : class
 {
     using (var db = new PetaDbContext())
     {
         return(db.Exists <T>(id));
     }
 }
Ejemplo n.º 2
0
 public bool IsExists <T>(string sqlWhere, params object[] args) where T : class
 {
     using (var db = new PetaDbContext())
     {
         return(db.Exists <T>(sqlWhere, args));
     }
 }