TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yogesh Vedpathak
674
1.4k
191.6k
Multiple object sets per type are not supported. The object
May 22 2018 4:42 AM
Multiple object sets per type are not supported. The object sets 'IdentityUsers' and 'users' can both contain instances of type 'Practices.Models.User'.
This is my context File
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
namespace Practices.Models
{
public class ApplicationDbContext: DbContext
{
public ApplicationDbContext(): base("Context")
{
}
// public System.Data.Entity.DbSet<Practices.Models.User> IdentityUsers { get; set; }
public DbSet<User> users { get;set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
}
}
}
Reply
Answers (
0
)
First Data Passing parameter c#
Validation for Null fields in web form using SQL