UnitOfWork icon indicating copy to clipboard operation
UnitOfWork copied to clipboard

A plugin for Microsoft.EntityFrameworkCore to support repository, unit of work patterns, multiple database with distributed transaction supported, and MySQL multiple databases/tables sharding supporte...

Results 37 UnitOfWork issues
Sort by recently updated
recently updated
newest added

I have found that if I do not use "AddCustomRepository()" in the Startup.cs ,it alse can run corrctly(it can alse get the right data in the mysql database) so what's...

I use like this: var repo = _unitOfWork.GetRepository(); repo.Delete(id); _unitOfWork.SaveChanges(); But it Error: Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException:“Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified...

Hi @xyting I have a question about TransactionScope There is **IUnitOfWorkOfT** in project. But i havent fount how to uset it . Could you help about subject: How to use...

Is there any reason that PagedList has no public constructor? All of the constuctors are currently internal. As a result, I can't unit test code that returns a PagedList because...

We are trying to do table sharding with following code ` [HttpGet("test/{flag}")] public string test(string flag) { var _repository = _unitOfWork.GetRepository(); Comment _data; if (flag.Equals("0")) { _repository.ChangeTable("Comment_0"); _data = new...

in many stituation, we will need to display something just inserted. but the insert method never return the entity or it's Id . There's no way to find the one...

``` var result2 = await unitOfWork.GetRepository() .GetPagedListAsync( mapping => mapper.Map(mapping), null, mapping => mapping.OrderBy(map => map.Name), include: source => source.Include(mapping => mapping.Template), queryParameters.PageIndex, queryParameters.PageSize); ``` The combination of `mapping =>...

Hi, I need some help running this; I need to include the second table with a condition like so; DateTime _mydate = BusinessDaysUtility.ConvertFromDateTimeOffset(model.Today.Value.Date); var results = await _unitOfWork.GetRepository().GetPagedListAsync( disableTracking: true,...

Hello, I m trying to add autohistory to my project and everything is looking good except the changed column in AutoHistory table in the database. In changed column, before and...