コード例 #1
0
 protected SubClassPart(DiscriminatorPart parent, object discriminatorValue, MappingProviderStore providers)
     : base(providers)
 {
     this.parent             = parent;
     this.discriminatorValue = discriminatorValue;
     this.providers          = providers;
 }
コード例 #2
0
 protected ClassMap(AttributeStore attributes, MappingProviderStore providers)
     : base(providers)
 {
     this.attributes = attributes;
     this.providers  = providers;
     optimisticLock  = new OptimisticLockBuilder <ClassMap <T> >(this, value => attributes.Set("OptimisticLock", Layer.UserSupplied, value));
     polymorphism    = new PolymorphismBuilder <ClassMap <T> >(this, value => attributes.Set("Polymorphism", Layer.UserSupplied, value));
     schemaAction    = new SchemaActionBuilder <ClassMap <T> >(this, value => attributes.Set("SchemaAction", Layer.UserSupplied, value));
     Cache           = new CachePart(typeof(T));
 }
コード例 #3
0
 protected JoinedSubClassPart(string keyColumn, AttributeStore attributes, MappingProviderStore providers)
     : base(providers)
 {
     this.providers  = providers;
     this.attributes = attributes;
     columns         = new ColumnMappingCollection <JoinedSubClassPart <TSubclass> >(this)
     {
         keyColumn
     };
 }
コード例 #4
0
        protected JoinPart(string tableName, MappingProviderStore providers)
            : base(providers)
        {
            this.providers = providers;
            fetch          = new FetchTypeExpression <JoinPart <T> >(this, value => attributes.Set("Fetch", Layer.UserSupplied, value));

            attributes.Set("TableName", Layer.Defaults, tableName);
            attributes.Set("Key", Layer.Defaults, new KeyMapping {
                ContainingEntityType = typeof(T)
            });
        }
コード例 #5
0
        protected ComponentPartBase(AttributeStore attributes, Member member, MappingProviderStore providers)
            : base(providers)
        {
            this.attributes = attributes;
            access          = new AccessStrategyBuilder <TBuilder>((TBuilder)this, value => attributes.Set("Access", Layer.UserSupplied, value));
            this.member     = member;
            this.providers  = providers;

            if (member != null)
            {
                SetDefaultAccess();
            }
        }
コード例 #6
0
ファイル: ClassMap`1.cs プロジェクト: santosb/FIFairy
 protected ClassMap(AttributeStore <ClassMapping> attributes, MappingProviderStore providers)
     : base(providers)
 {
     this.attributes     = attributes;
     this.providers      = providers;
     this.optimisticLock = new OptimisticLockBuilder <ClassMap <T> >(this, (Action <string>)(value =>
     {
         AttributeStore <ClassMapping> temp_48 = attributes;
         ParameterExpression local_0           = Expression.Parameter(typeof(ClassMapping), "x");
         // ISSUE: method reference
         Expression <Func <ClassMapping, string> > temp_64 = Expression.Lambda <Func <ClassMapping, string> >((Expression)Expression.Property((Expression)local_0, (MethodInfo)MethodBase.GetMethodFromHandle(__methodref(ClassMapping.get_OptimisticLock))), new ParameterExpression[1]
         {
             local_0
         });
         string temp_65 = value;
         temp_48.Set <string>(temp_64, temp_65);
     }));
     this.polymorphism = new PolymorphismBuilder <ClassMap <T> >(this, (Action <string>)(value =>
     {
         AttributeStore <ClassMapping> temp_67 = attributes;
         ParameterExpression local_0           = Expression.Parameter(typeof(ClassMapping), "x");
         // ISSUE: method reference
         Expression <Func <ClassMapping, string> > temp_83 = Expression.Lambda <Func <ClassMapping, string> >((Expression)Expression.Property((Expression)local_0, (MethodInfo)MethodBase.GetMethodFromHandle(__methodref(ClassMapping.get_Polymorphism))), new ParameterExpression[1]
         {
             local_0
         });
         string temp_84 = value;
         temp_67.Set <string>(temp_83, temp_84);
     }));
     this.schemaAction = new SchemaActionBuilder <ClassMap <T> >(this, (Action <string>)(value =>
     {
         AttributeStore <ClassMapping> temp_86 = attributes;
         ParameterExpression local_0           = Expression.Parameter(typeof(ClassMapping), "x");
         // ISSUE: method reference
         Expression <Func <ClassMapping, string> > temp_102 = Expression.Lambda <Func <ClassMapping, string> >((Expression)Expression.Property((Expression)local_0, (MethodInfo)MethodBase.GetMethodFromHandle(__methodref(ClassMapping.get_SchemaAction))), new ParameterExpression[1]
         {
             local_0
         });
         string temp_103 = value;
         temp_86.Set <string>(temp_102, temp_103);
     }));
     this.Cache = new CachePart(typeof(T));
 }
コード例 #7
0
 protected ClasslikeMapBase(MappingProviderStore providers)
 {
     this.providers = providers;
 }
コード例 #8
0
 protected SubclassMap(MappingProviderStore providers)
     : base(providers)
 {
     this.providers = providers;
 }
コード例 #9
0
 private DynamicComponentPart(Type entity, Member member, AttributeStore underlyingStore, MappingProviderStore providers)
     : base(underlyingStore, member, providers)
 {
     this.entity    = entity;
     this.providers = providers;
 }
コード例 #10
0
 protected ClassMap(AttributeStore <ClassMapping> attributes, MappingProviderStore providers);