private TableDescription BuildTableDescription()
        {
            var builder = new TableDescriptionBuilder<Model>();

            return builder
                .Add(x => x.Id)
                .Add(x => x.Name)
                .Add(x => x.Description)
                .Build();
        }
Exemplo n.º 2
0
        private TableDescription BuildTableDescription()
        {
            var builder = new TableDescriptionBuilder <Model>();

            return(builder
                   .Add(x => x.Id)
                   .Add(x => x.Name)
                   .Add(x => x.Description)
                   .Build());
        }
Exemplo n.º 3
0
 public static TableDescriptionBuilder <T> Add <T>(this TableDescriptionBuilder <T> @this, Expression <Func <T, object> > columnSelector)
     where T : class
 {
     @this.AddColumn(columnSelector);
     return(@this);
 }
Exemplo n.º 4
0
 public static TableDescriptionBuilder <T> Add <T>(this TableDescriptionBuilder <T> @this, string columnName, Type columnType)
     where T : class
 {
     @this.AddColumn(columnName, columnType);
     return(@this);
 }