Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public SourceReferences(
     SourceConstraint pkConstarint,
     SourceConstraint fkConstarint,
     SourceFieldDefinition pkField,
     SourceFieldDefinition fkField)
     : this(null, pkConstarint, fkConstarint, pkField, fkField)
 {
 }
Exemplo n.º 3
0
        public bool Equals(SourceFieldDefinition obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(sf);
        }