Пример #1
0
        //public ScalarPropertyDefinition(string propertyName)
        //    : this(null, propertyName, propertyName, Field2DbRelations.None, null, null, null, AccessLevel.Private, AccessLevel.Public)
        //{
        //}

        //public ScalarPropertyDefinition(string propertyName, string propertyAlias, Field2DbRelations attributes, string description,
        //    TypeDefinition type, SourceFieldDefinition sf,
        //    AccessLevel fieldAccessLevel, AccessLevel propertyAccessLevel)
        //    : this(null, propertyName, propertyAlias, attributes, description, type, sf, fieldAccessLevel, propertyAccessLevel)
        //{
        //}

        public ScalarPropertyDefinition(EntityDefinition entity, string propertyName, string propertyAlias, Field2DbRelations attributes,
                                        string description, TypeDefinition type, SourceFieldDefinition sf,
                                        AccessLevel fieldAccessLevel, AccessLevel propertyAccessLevel)
            : base(propertyName, propertyAlias, type, attributes, description, fieldAccessLevel, propertyAccessLevel, entity)
        {
            _sf = sf;
        }
Пример #2
0
 public SourceReferences(
     SourceConstraint pkConstarint,
     SourceConstraint fkConstarint,
     SourceFieldDefinition pkField,
     SourceFieldDefinition fkField)
     : this(null, pkConstarint, fkConstarint, pkField, fkField)
 {
 }
Пример #3
0
        public bool Equals(SourceFieldDefinition obj)
        {
            if (obj == null)
            {
                return(false);
            }

            return(ToString() == obj.ToString());
        }
Пример #4
0
 public SourceReferences(string action,
                         SourceConstraint pkConstarint,
                         SourceConstraint fkConstarint,
                         SourceFieldDefinition pkField,
                         SourceFieldDefinition fkField)
 {
     DeleteAction = action;
     PKConstraint = pkConstarint;
     FKConstraint = fkConstarint;
     PKField      = pkField;
     FKField      = fkField;
 }
Пример #5
0
        public SourceFieldDefinition Clone()
        {
            SourceFieldDefinition sf = new SourceFieldDefinition(SourceFragment, SourceFieldExpression, SourceType, SourceTypeSize, IsNullable, IsAutoIncrement, DefaultValue);

            return(sf);
        }