Entities’ does not contain a constructor that takes 1 arguments

public class Connection { public static string GetConecction() { return ConfigurationManager.ConnectionStrings["DCAssetEntities"].ConnectionString; } } I have one “connection” class to configure my web with Entity framework model Entities public class ConnectionDAL { private DCAssetEntities db; public ConnectionDAL() { db = new DCAssetEntities(Connection.GetConecction()); } } then I intialize my database in “ConnectionDAL” class constructor,, It’s working good … Read more

How to handle many to many same table (User) in ASP.Net MVC 5 – Fluent API

I am learning ASP.Net MVC 5 and I am stuck with one basic DB Design.
So, I have one User which can refer many person in job
Also, many person can apply to get themselves Referred. I have created two roles and all of that is taken care. Now, I have on class called Referral which will keep track of every instance of Referral that needs to be done.