New Post: Implement ASP.Net Identity 2.0 with IdentityDbcontext
Hi all, After a time to research everywhere, finally I could integrate Microsoft Identity 2.0 with this framework. But i need to touch into the Identity 2.0 source code with some override function. If...
View ArticleNew Post: Implement ASP.Net Identity 2.0 with IdentityDbcontext
Hello LionKing1109, can you post your solution, please.... My email: zolino11@azet.sk Thanks
View ArticleNew Post: Implement ASP.Net Identity 2.0 with IdentityDbcontext
I encourage you guys to take a look at the project https://github.com/imranbaloch/ASPNETIdentityWithOnion. It separate concerns very well. Check here the article:...
View ArticleNew Post: ICollectionView throw Entity Framework Attach exception
Please help me... i really need a help on this error.
View ArticleNew Post: ICollectionView throw Entity Framework Attach exception
Hi Daniloloko, From your post I can't derive what's going on, if this is urgent, you can request a one on one live support session for this issue from the "Documents" page.
View ArticleNew Post: ICollectionView throw Entity Framework Attach exception
Hi lelong, Thats not a urgent thing, im just WTF is going on... to reproduce this thats the code:IEnumerable<Cliente> Clientes = _clienteService.ClienteService_GetAll(); var personViewModels =...
View ArticleNew Post: ICollectionView throw Entity Framework Attach exception
The problem was that this framework doesn't fit for windows application..."since the framework wraps the DbSet<T>, you can't use it, I think this framework doesn't fit for windows application,...
View ArticleNew Post: Query
Hello, how do I use Contains or Any inside Query? my sample:var userRegion = _regionService.GetRegionByUser(User.Identity.GetUserId<int>()); var query = _regionService.Query(r =>...
View ArticleNew Post: ICollectionView throw Entity Framework Attach exception
Problem resolved... The Repository.cs has a internal IQueryable<TEntity> Select(.... I added the AsNoTracking() on this line: _IQueryable<TEntity> query = dbSet.AsNoTracking(); Now when i...
View ArticleNew Post: Implement ASP.Net Identity 2.0 with IdentityDbcontext
Can you share your solution for that? Is that a separate datacontext?
View ArticleNew Post: Change Tracking
I need to be able to track the changes made to an entity to create a history of changes. Bob changed "Color" from "Red" to "Blue" on 9/8/2014. Has anybody attempted a global solution using this...
View ArticleNew Post: Deep load all child entities
Hi, What is best practice to deep load all child entities of an entity? It is possible to use .Include(x=>x.childEntities) for one level, but I would like to load the childChildEntities of the...
View ArticleNew Post: Deep load all child entities
Case closed. I found that in the documentation.https://genericunitofworkandrepositories.codeplex.com/wikipage?title=Quick%20Samples%20in%20LINQPad&referringTitle=Documentation
View ArticleNew Post: The entity type Person is not part of the model for the current...
Hello, When I use this framework with the Adventure Works 2014 database, it gives me this error "The entity type Person is not part of the model for the current context." Here is a copy of my...
View ArticleNew Post: Delete subitems / children
I am trying to implement deletions of subitems/children using this framework with no luck yet. I have an Entity called Language and several other Entities that each have details relating to the...
View ArticleNew Post: Delete subitems / children
Is adding the following to the LanguageService delete call a good solution? public override void Delete(Language entity) { IUnitOfWork unitOfWork= _repository.UnitOfWork(); try {...
View ArticleNew Post: Delete subitems / children
I don’t see anything wrong with it, however you can configure EF and/or Sql to do a cascading delete, again, not required, just another option.
View ArticleNew Post: Multiple Inserts with an Error case
Hi If I set a non null product attribute such as Name, in the imported collection, to null then the Catch statement is activated and I log the error. The issue is that all other products after the null...
View ArticleNew Post: Multiple Entity Framework Contexts(Multiple database types) on the...
Hi Danilo, I am having the same issue, I have a prototype with Northwind and Adventure works together. Here is my UnityConfig. container.RegisterType<IRepositoryProvider, RepositoryProvider>( new...
View ArticleNew Post: Multiple Inserts with an Error case
Have written an 'Integration Test'. Hope this helps you and you can take a look why this fails please...[TestMethod] public void InsertManyProducts() { using (IDataContextAsync northwindFakeContext =...
View Article