Beispiel #1
0
 void CreateIntermediateClassInfo(XPDictionary outputDictionary, XPDictionary inputDictionary, string className, InitialDataAttribute importDataAttribute, XPMemberInfo memberInfo) {
     var info = new IntermediateClassInfo(inputDictionary, className);
     info.CreateMember("Oid_" + importDataAttribute.DataProviderQueryColumnName, typeof(int)).AddAttribute(new KeyAttribute(true));
     info.CreateMember(importDataAttribute.DataProviderQueryColumnName, memberInfo.Owner.KeyProperty.MemberType);
     var collectionElementType = memberInfo.CollectionElementType.ClassType;
     var memberType = outputDictionary.QueryClassInfo(collectionElementType).KeyProperty.MemberType;
     info.CreateMember(importDataAttribute.DataProviderResultColumnName, memberType);
 }
Beispiel #2
0
        void CreateIntermediateClassInfo(XPDictionary outputDictionary, XPDictionary inputDictionary, string className, InitialDataAttribute importDataAttribute, XPMemberInfo memberInfo)
        {
            var info = new IntermediateClassInfo(inputDictionary, className);

            info.CreateMember("Oid_" + importDataAttribute.DataProviderQueryColumnName, typeof(int)).AddAttribute(new KeyAttribute(true));
            info.CreateMember(importDataAttribute.DataProviderQueryColumnName, memberInfo.Owner.KeyProperty.MemberType);
            var collectionElementType = memberInfo.CollectionElementType.ClassType;
            var memberType            = outputDictionary.QueryClassInfo(collectionElementType).KeyProperty.MemberType;

            info.CreateMember(importDataAttribute.DataProviderResultColumnName, memberType);
        }