public EntityConfig(string tableName, string className = null, string classPluralName = null) { if (tableName == null) { throw new ArgumentNullException(nameof(tableName)); } this.TableName = tableName; this.ClassName = className ?? NameProvider.GetClassName(tableName); this.ClassPluralName = classPluralName ?? this.ClassName + @"s"; }