コード例 #1
0
        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();
        }