private TableDescription BuildTableDescription() { var builder = new TableDescriptionBuilder<Model>(); return builder .Add(x => x.Id) .Add(x => x.Name) .Add(x => x.Description) .Build(); }
private TableDescription BuildTableDescription() { var builder = new TableDescriptionBuilder <Model>(); return(builder .Add(x => x.Id) .Add(x => x.Name) .Add(x => x.Description) .Build()); }
public static TableDescriptionBuilder <T> Add <T>(this TableDescriptionBuilder <T> @this, Expression <Func <T, object> > columnSelector) where T : class { @this.AddColumn(columnSelector); return(@this); }
public static TableDescriptionBuilder <T> Add <T>(this TableDescriptionBuilder <T> @this, string columnName, Type columnType) where T : class { @this.AddColumn(columnName, columnType); return(@this); }