Data Collections
Alejandro Cernuda
TweetWorking with data collections sometimes leads to endless cycles and code inefficiency. In SQLClientCoreTool all CRUD operations can be implemented over data collections.
DataGather dataGather = DataGather.GetInstance(ConnectionString);
await dataGather.InsertListAsync(list);
await dataGather.UpdateManyAsync(list, null);
await dataGather.DeleteRangeAsync(list);
Note: To perform the above methods, there must be a table in the database named after the class that forms the collection, and the collection must have a primary key. Otherwise we would have to specify the name of the table. Perhaps it is better explained if we put the statement of one of the methods.
/// Inserts an object into the Table named as objecttype.
/// </summary>
/// <param name="obj
/// <param name="tableName
/// <returns> if Table identity returns identityvalue else the number of inserted rows</returns>
public async
{
return
}