Пример #1
0
 public VersionPart(Type entity, PropertyInfo property)
 {
     this.entity = entity;
     this.property = property;
     access = new AccessStrategyBuilder<VersionPart>(this, value => attributes.Set(x => x.Access, value));
     generated = new VersionGeneratedBuilder<IVersionMappingProvider>(this, value => attributes.Set(x => x.Generated, value));
 }
 public VersionPart(Type entity, PropertyInfo property)
 {
     EntityType = entity;
     access = new AccessStrategyBuilder<VersionPart>(this);
     properties = new Cache<string, string>();
     Property = property;
     SetAttribute("name", Property.Name);
 }
        public IdentityPart(Type entity, PropertyInfo property, string columnName)
        {
            access = new AccessStrategyBuilder<IIdentityPart>(this);

            EntityType = entity;
            this.property = property;
            ColumnName(columnName);
            generatedBy = new IdentityGenerationStrategyBuilder(this);
        }
Пример #4
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();
        }
Пример #5
0
 public KeyPropertyPart(KeyPropertyMapping mapping)
 {
     this.mapping = mapping;
     Access = new AccessStrategyBuilder<KeyPropertyPart>(this, value => mapping.Set(x =>x.Access, Layer.UserSupplied, value));
 }
Пример #6
0
 public KeyPropertyPart(KeyPropertyMapping mapping)
 {
     this.mapping = mapping;
     Access = new AccessStrategyBuilder<KeyPropertyPart>(this, value => mapping.Access = value);
 }
 public void SetUp()
 {
     mapping = new MappingPartStub();
     builder = new AccessStrategyBuilder<MappingPartStub>(this.mapping);
 }
Пример #8
0
 public KeyManyToOnePart(KeyManyToOneMapping mapping)
 {
     this.mapping = mapping;
     Access = new AccessStrategyBuilder<KeyManyToOnePart>(this, value => mapping.Access = value);
     NotFound = new NotFoundExpression<KeyManyToOnePart>(this, value => mapping.NotFound = value);
 }
 public HibernateMappingPart()
 {
     defaultCascade = new CascadeExpression<HibernateMappingPart>(this, value => attributes.Set("DefaultCascade", Layer.UserSupplied, value));
     defaultAccess = new AccessStrategyBuilder<HibernateMappingPart>(this, value => attributes.Set("DefaultAccess", Layer.UserSupplied, value));
 }
Пример #10
0
 public KeyManyToOnePart(KeyManyToOneMapping mapping)
 {
     this.mapping = mapping;
     Access = new AccessStrategyBuilder<KeyManyToOnePart>(this, value => mapping.Set(x => x.Access, Layer.UserSupplied, value));
     NotFound = new NotFoundExpression<KeyManyToOnePart>(this, value => mapping.Set(x => x.NotFound, Layer.UserSupplied, value));
 }
 public HibernateMappingPart()
 {
     defaultCascade = new CascadeExpression<HibernateMappingPart>(this, value => attributes.Set(x => x.DefaultCascade, value));
     defaultAccess = new AccessStrategyBuilder<HibernateMappingPart>(this, value => attributes.Set(x => x.DefaultAccess, value));
 }