// Methods protected override object CreateEntity() { // ConnectionStringName string connectionStringName = this.ConnectionStringName; if (string.IsNullOrEmpty(connectionStringName) == true) throw new InvalidOperationException(); // ConnectionString string connectionString = this.SettingContext.ConnectionStrings[connectionStringName]; if (string.IsNullOrEmpty(connectionString) == true) throw new InvalidOperationException(); // Create SqlRepository sqlRepository = new SqlRepository(connectionString); // Return return sqlRepository; }