Example #1
0
            void IIntersectedFieldsGenericExecutor.Execute <TLeftModel, TLeftField, TRightModel, TRightField, TLeftData, TRightData>(
                IntersectedFields <TLeftModel, TLeftField, TRightModel, TRightField, TLeftData, TRightData> intersectedFields
                )
            {
                var intersect = intersectedFields as IntersectedFields <ViewIntersectionModel, ViewIntersectionField, EntityModel, EntityField, TLeftData, TRightData>;

                Field = new ConvertedViewIntersectionField <TLeftData, TRightData>(
                    intersect.LeftField.FieldName, intersect.LeftField.CanRead, intersect.LeftField.CanWrite,
                    intersect.LeftField.DeclaringTypeModel, intersect.LeftField.OriginPropertyField,
                    intersect.LeftPath, intersect.GetConvertDelegate()
                    );
            }
 internal void Replace(ViewIntersectionField newField)
 {
     Parent.Replace(this, newField);
 }
 void IFieldGenericExecutor.Execute <TField, TData>(IField field)
 {
     Field = new ViewIntersectionField <TData>(
         field.FieldName, field.CanRead, field.CanWrite, field.FieldDataType, _typeModel, field as PropertyInfoField
         );
 }