public string Format(EntityName entityName) { var builder = new StringBuilder(); foreach (var part in entityName.Parts) { if (builder.Length == 0 && !this.upperCamelCase) { builder.Append(part); } else { builder.Append(char.ToUpper(part.First())); foreach (var c in part.Skip(1)) { builder.Append(c); } } } return(builder.ToString()); }
public string Format(EntityName entityName) { return(string.Join("_", entityName.Parts)); }