Exemplo n.º 1
0
        public static FieldDef AddComplexCollection(this IContainsFields fields, string name)
        {
            var fieldDef = fields.AddField(name, DataType.Complex);

            fieldDef.IsCollection = true;
            return(fieldDef);
        }
Exemplo n.º 2
0
        public static FieldDef AddEntityCollection(this IContainsFields fields, string name, string memberEntityName)
        {
            var fieldDef = fields.AddField(name, DataType.Entity);

            fieldDef.IsCollection       = true;
            fieldDef.DataTypeEntityName = memberEntityName;
            return(fieldDef);
        }
Exemplo n.º 3
0
        public static FieldDef AddCalcField(this IContainsFields container, string name, DataType dataType, string expression)
        {
            var fieldDef = container.AddField(name, dataType);

            fieldDef.IsCalculated     = true;
            fieldDef.Calc.FormulaText = expression;
            return(fieldDef);
        }
Exemplo n.º 4
0
        public static FieldDef AddComplexField(this IContainsFields fields, string name)
        {
            var fieldDef = fields.AddField(name, DataType.Complex);

            return(fieldDef);
        }