Example #1
0
        Column <TEntity>(this File2ObjectManager <TEntity, ICell> manager, Expression <Func <TEntity, long?> > action,
                         bool isRequire = false)
        {
            var columnName = PropertyHelper.GetPropertyInfo(action).Name;

            return(manager.Column(columnName, action, isRequire));
        }
Example #2
0
        public static File2ObjectManager <TEntity, ICell> ColumnDisplayAttribute <TEntity>(
            this File2ObjectManager <TEntity, ICell> manager,
            Expression <Func <TEntity, DateTimeOffset> > action, bool isRequire = false)
        {
            var name = PropertyHelper.GetPropertyNameFromDisplay(action);

            return(manager.Column(name, action, isRequire));
        }
Example #3
0
        public static File2ObjectManager <TEntity, ICell> Column <TEntity>(
            this File2ObjectManager <TEntity, ICell> manager,
            Expression <Func <TEntity, DateTimeOffset?> > action, bool isRequire = false)
        {
            var name = PropertyHelper.GetPropertyInfo(action).Name;

            return(manager.Column(name, action, isRequire));
        }
Example #4
0
        ColumnDisplayAttribute <TEntity>(this File2ObjectManager <TEntity, ICell> manager,
                                         Expression <Func <TEntity, decimal> > action,
                                         bool isRequire = false)
        {
            var columnName = PropertyHelper.GetPropertyNameFromDisplay(action);

            return(manager.Column(columnName, action, isRequire));
        }
        ColumnDisplayNameAttribute <TEntity>(this File2ObjectManager <TEntity, ICell> manager, string trueStrExpress,
                                             Expression <Func <TEntity, bool?> > action,
                                             bool isRequire = false)
        {
            var columnName = PropertyHelper.GetPropertyNameFromDisplayName(action);

            return(manager.Column(columnName, trueStrExpress, action, isRequire));
        }