public IdentityPart(Type entity, PropertyInfo property, string columnName)
        {
            access = new AccessStrategyBuilder<IIdentityPart>(this);

            EntityType = entity;
            this.property = property;
            ColumnName(columnName);
            generatedBy = new IdentityGenerationStrategyBuilder(this);
        }
Пример #2
0
        public IdentityPart(Type entity, PropertyInfo property)
        {
            this.property = property;
            entityType = entity;

            access = new AccessStrategyBuilder<IdentityPart>(this, value => attributes.Set(x => x.Access, value));
            GeneratedBy = new IdentityGenerationStrategyBuilder<IdentityPart>(this, property.PropertyType, entity);

            SetDefaultGenerator();
        }
Пример #3
0
        public IdentityPart(Type entity, Type identityType)
        {
            this.entityType   = entity;
            this.identityType = identityType;

            access      = new AccessStrategyBuilder <IdentityPart>(this, value => attributes.Set("Access", Layer.UserSupplied, value));
            GeneratedBy = new IdentityGenerationStrategyBuilder <IdentityPart>(this, this.identityType, entity);

            SetDefaultGenerator();
        }
Пример #4
0
        public IdentityPart(Type entity, Member member)
        {
            entityType   = entity;
            this.member  = member;
            identityType = member.PropertyType;

            access      = new AccessStrategyBuilder <IdentityPart>(this, value => attributes.Set(x => x.Access, value));
            GeneratedBy = new IdentityGenerationStrategyBuilder <IdentityPart>(this, member.PropertyType, entityType);
            SetName(member.Name);
            SetDefaultGenerator();
        }
Пример #5
0
        public IdentityPart(Type entity, Type identityType, string columnName)
        {
            this.property     = null;
            this.entityType   = entity;
            this.identityType = identityType;
            this.columnName   = columnName;

            access      = new AccessStrategyBuilder <IdentityPart>(this, value => attributes.Set(x => x.Access, value));
            GeneratedBy = new IdentityGenerationStrategyBuilder <IdentityPart>(this, this.identityType, entity);

            SetDefaultGenerator();
        }
Пример #6
0
        public IdentityPart(Type entity, Member property)
        {
            this.property     = property;
            entityType        = entity;
            this.identityType = property.PropertyType;
            this.columnName   = property.Name;

            access      = new AccessStrategyBuilder <IdentityPart>(this, value => attributes.Set(x => x.Access, value));
            GeneratedBy = new IdentityGenerationStrategyBuilder <IdentityPart>(this, property.PropertyType, entity);

            SetDefaultGenerator();
        }