public BaseRepository(SocialServiceEntities _bd) { this.bd = _bd; this.PrimaryDatabaseSet = bd.Set <TPrimaryEntity>(); }