We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is possible to add DbDataAdapter for typed CRUD operations with POCO with methods:
class DbDataAdapter<T> { T LoadByKey(params object[] key); List<T> Load(QConditionNode condition); // maybe this method should be protected ?.. void Insert(T model); void Update(T model); void Delete(T model); void DeleteByKey(params object[] key); }
This implementation may effectively reuse DbCommand instances and perform POCO-mapping very fast by caching getters/setters.
The text was updated successfully, but these errors were encountered:
Not sure about class name, maybe Repository<T> is better?..
Repository<T>
Also I think it is good idea to add List<T> Load(Expression<Func<T,bool>> predicate) for simple filtering by model properties.
List<T> Load(Expression<Func<T,bool>> predicate)
Sorry, something went wrong.
No branches or pull requests
It is possible to add DbDataAdapter for typed CRUD operations with POCO with methods:
This implementation may effectively reuse DbCommand instances and perform POCO-mapping very fast by caching getters/setters.
The text was updated successfully, but these errors were encountered: