public static Property From(Column column, ProjectConfig config) { var type = MapType(column, config); string name; EntityConfig entityConfig; if (column.ForeignKey == null) { name = NameProvider.GetPropertyName(column.Name); entityConfig = null; } else { name = type.Key; entityConfig = config.GetEntityConfig(column.ForeignKey.TableName); } return new Property(column, type.Key, type.Value, name, entityConfig); }
private static void AddParameter(StringBuilder buffer, Column column) { buffer.Append(@"@p"); buffer.Append(NameProvider.GetPropertyName(column.Name)); }