// نمی نويسيم Default Constructor ، Repository برای //public Repository() //{ //} public Repository(Models.DatabaseContext databaseContext) { if (databaseContext == null) { throw (new System.ArgumentNullException("databaseContext")); } DatabaseContext = databaseContext; DbSet = DatabaseContext.Set <T>(); }