コード例 #1
0
 public CustomNavigationPropertyAttribute(
     bool isPrimaryEnd,
     string entitySetName,
     CustomMultiplicity multiplicity,
     string relatedEndEntitySetName,
     Type relatedEndEntityType,
     CustomMultiplicity relatedEndMultiplicity
     )
 {
     _isPrimaryEnd            = isPrimaryEnd;
     _entitySetName           = entitySetName;
     _multiplicity            = multiplicity;
     _relatedEndEntitySetName = relatedEndEntitySetName;
     _relatedEndEntityType    = relatedEndEntityType;
     _relatedEndMultiplicity  = relatedEndMultiplicity;
 }
コード例 #2
0
        public void DefferedInitialization(
            bool isPrimaryEnd,
            CustomEntitySetType entitySetType,
            CustomEntityType entityType,
            CustomNavigationPropertyType relatedProperty,
            CustomMultiplicity multiplicity
            )
        {
            Debug.Assert(!_readonly);

            _isPrimaryEnd    = isPrimaryEnd;
            _entitySetType   = entitySetType;
            _entityType      = entityType;
            _relatedProperty = relatedProperty;
            _multiplicity    = multiplicity;

            _readonly = true;
        }
コード例 #3
0
 public CustomNavigationPropertyAttribute(
                         bool isPrimaryEnd,
                         string entitySetName,
                         CustomMultiplicity multiplicity,
                         string relatedEndEntitySetName,
                         Type relatedEndEntityType,                                
                         CustomMultiplicity relatedEndMultiplicity
                 )
 {
     _isPrimaryEnd = isPrimaryEnd;
     _entitySetName = entitySetName;
     _multiplicity = multiplicity;
     _relatedEndEntitySetName = relatedEndEntitySetName;
     _relatedEndEntityType = relatedEndEntityType;            
     _relatedEndMultiplicity = relatedEndMultiplicity;
 }