public static Biens getFirst(string where) { Biens res = null; var temp = DbManager.getFirst(Configuration.Config.DB_PATH, TABLE_NAME, where); if (temp != null) { res = createEntityFrom(temp); } return(res); }
public static Boolean delete(Biens obj) { return(DbManager.delete(Configuration.Config.DB_PATH, TABLE_NAME, TABLE_NAME + ".ID = '" + obj.Id + "'")); }
public static Boolean update(Biens obj) { return(DbManager.update(Configuration.Config.DB_PATH, TABLE_NAME, COLUMNS, obj.getValues(), TABLE_NAME + ".ID = '" + obj.Id + "'")); }
public static Boolean insert(Biens obj) { obj.id = Guid.NewGuid(); return(DbManager.insert(Configuration.Config.DB_PATH, TABLE_NAME, COLUMNS, obj.getValues())); }