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

            EntityType = entity;
            this.property = property;
            ColumnName(columnName);
            generatedBy = new IdentityGenerationStrategyBuilder(this);
        }
        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();
        }
Example #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();
        }
        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();
        }
Example #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();
        }
Example #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();
        }