示例#1
0
        public IField Date(string name)
        {
            var field = new ScalarField(this._entity, name, FieldType.Date);

            this.Add(name, field);
            return(field);
        }
示例#2
0
        public IField Integer(string name)
        {
            var field = new ScalarField(this._entity, name, FieldType.Integer);

            this.Add(name, field);
            return(field);
        }
示例#3
0
        public IField Binary(string name)
        {
            var field = new ScalarField(this._entity, name, FieldType.Binary);

            this.Add(name, field);
            return(field);
        }
示例#4
0
        private void AddInternalFields()
        {
            Debug.Assert(!this.Fields.ContainsKey(IdFieldName));

            var idField = new ScalarField(this, IdFieldName, FieldType.Identifier)
                          .WithRequired().WithReadonly();

            this.fields.Add(IdFieldName, idField);
        }