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

            return builder
                .Add(x => x.Id)
                .Add(x => x.Name)
                .Add(x => x.Description)
                .Build();
        }
Example #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());
        }
Example #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);
 }
Example #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);
 }