예제 #1
0
 public ExcelQueryable(ExcelQueryArgs args)
     : base(CreateExecutor(args))
 {
     foreach (var property in typeof(T).GetProperties())
     {
         ExcelColumnAttribute att
             = (ExcelColumnAttribute)Attribute.GetCustomAttribute(property, typeof(ExcelColumnAttribute));
         att.Register(args, property);
     }
 }
예제 #2
0
 public ExcelQueryable(ExcelQueryArgs args)
     : base(CreateExecutor(args))
 {
     foreach (var property in typeof(T).GetProperties())
     {
         ExcelColumnAttribute att = (ExcelColumnAttribute)Attribute.GetCustomAttribute(property, typeof(ExcelColumnAttribute));
         if (att != null && !args.ColumnMappings.ContainsKey(property.Name))
         {
             args.ColumnMappings.Add(property.Name, att.ColumnName);
         }
     }
 }