コード例 #1
0
ファイル: ClassMap`1.cs プロジェクト: santosb/FIFairy
        public virtual void JoinedSubClass <TSubclass>(string keyColumn, Action <JoinedSubClassPart <TSubclass> > action) where TSubclass : T
        {
            JoinedSubClassPart <TSubclass> joinedSubClassPart = new JoinedSubClassPart <TSubclass>(keyColumn);

            action(joinedSubClassPart);
            this.providers.Subclasses[typeof(TSubclass)] = (ISubclassMappingProvider)joinedSubClassPart;
        }
コード例 #2
0
        public virtual void JoinedSubClass <TSubclass>(string keyColumn, Action <JoinedSubClassPart <TSubclass> > action) where TSubclass : T
        {
            var subclass = new JoinedSubClassPart <TSubclass>(keyColumn);

            action(subclass);

            subclasses[typeof(TSubclass)] = subclass;
        }
コード例 #3
0
        public virtual void JoinedSubClass <TNextSubclass>(string keyColumn, Action <JoinedSubClassPart <TNextSubclass> > action)
        {
            var subclass = new JoinedSubClassPart <TNextSubclass>(keyColumn);

            action(subclass);

            subclasses[typeof(TNextSubclass)] = subclass;

            subclassMappings.Add(((ISubclassMappingProvider)subclass).GetSubclassMapping());
        }