public static bool Delete <T>(T model, AdoHelper ado) where T : EntityBase, new() { EntityQuery <T> q = new EntityQuery <T>(ado); int count = q.Delete(model); return(count > 0); }
public async Task DeleteAsync(Guid id) { using (var connection = context.CreateConnection()) { await connection.ExecuteAsync(EntityQuery.Delete(id)); } }
public static void Delete(UserModels user) { try { EntityQuery <UserModels> query = new EntityQuery <UserModels>(user); query.Delete(user); } catch (Exception ex) { throw; } }