Ejemplo n.º 1
0
        private NavigationPropertyConfiguration(NavigationPropertyConfiguration source)
        {
            DebugCheck.NotNull(source);

            _navigationProperty        = source._navigationProperty;
            _endKind                   = source._endKind;
            _inverseNavigationProperty = source._inverseNavigationProperty;
            _inverseEndKind            = source._inverseEndKind;

            _constraint = source._constraint == null
                              ? null
                              : source._constraint.Clone();

            _associationMappingConfiguration
                = source._associationMappingConfiguration == null
                      ? null
                      : source._associationMappingConfiguration.Clone();

            DeleteAction = source.DeleteAction;
            IsNavigationPropertyDeclaringTypePrincipal = source.IsNavigationPropertyDeclaringTypePrincipal;

            _modificationStoredProceduresConfiguration
                = source._modificationStoredProceduresConfiguration == null
                      ? null
                      : source._modificationStoredProceduresConfiguration.Clone();
        }
        private NavigationPropertyConfiguration(NavigationPropertyConfiguration source)
        {
            DebugCheck.NotNull(source);

            _navigationProperty = source._navigationProperty;
            _endKind = source._endKind;
            _inverseNavigationProperty = source._inverseNavigationProperty;
            _inverseEndKind = source._inverseEndKind;

            _constraint = source._constraint == null
                              ? null
                              : source._constraint.Clone();

            _associationMappingConfiguration
                = source._associationMappingConfiguration == null
                      ? null
                      : source._associationMappingConfiguration.Clone();

            DeleteAction = source.DeleteAction;
            IsNavigationPropertyDeclaringTypePrincipal = source.IsNavigationPropertyDeclaringTypePrincipal;

            _modificationFunctionsConfiguration
                = source._modificationFunctionsConfiguration == null
                      ? null
                      : source._modificationFunctionsConfiguration.Clone();
        }
Ejemplo n.º 3
0
 internal void Reset()
 {
     _endKind = null;
     _inverseNavigationProperty = null;
     _inverseEndKind            = null;
     _constraint = null;
     _associationMappingConfiguration = null;
 }
Ejemplo n.º 4
0
 internal void Reset()
 {
     this._endKind = new System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity?();
     this._inverseNavigationProperty = (PropertyInfo)null;
     this._inverseEndKind            = new System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity?();
     this._constraint = (ConstraintConfiguration)null;
     this._associationMappingConfiguration = (AssociationMappingConfiguration)null;
 }
Ejemplo n.º 5
0
 private NavigationPropertyConfiguration(NavigationPropertyConfiguration source)
 {
     this._navigationProperty                        = source._navigationProperty;
     this._endKind                                   = source._endKind;
     this._inverseNavigationProperty                 = source._inverseNavigationProperty;
     this._inverseEndKind                            = source._inverseEndKind;
     this._constraint                                = source._constraint == null ? (ConstraintConfiguration)null : source._constraint.Clone();
     this._associationMappingConfiguration           = source._associationMappingConfiguration == null ? (AssociationMappingConfiguration)null : source._associationMappingConfiguration.Clone();
     this.DeleteAction                               = source.DeleteAction;
     this.IsNavigationPropertyDeclaringTypePrincipal = source.IsNavigationPropertyDeclaringTypePrincipal;
     this._modificationStoredProceduresConfiguration = source._modificationStoredProceduresConfiguration == null ? (ModificationStoredProceduresConfiguration)null : source._modificationStoredProceduresConfiguration.Clone();
 }
        private NavigationPropertyConfiguration(NavigationPropertyConfiguration source)
        {
            //Contract.Requires(source != null);

            _navigationProperty = source._navigationProperty;
            _endKind = source._endKind;
            _inverseNavigationProperty = source._inverseNavigationProperty;
            _inverseEndKind = source._inverseEndKind;

            _constraint = source._constraint == null ? null : source._constraint.Clone();

            _associationMappingConfiguration = source._associationMappingConfiguration == null
                                                   ? null
                                                   : source._associationMappingConfiguration.Clone();

            DeleteAction = source.DeleteAction;
            IsNavigationPropertyDeclaringTypePrincipal = source.IsNavigationPropertyDeclaringTypePrincipal;
        }
 internal void Reset()
 {
     _endKind = null;
     _inverseNavigationProperty = null;
     _inverseEndKind = null;
     _constraint = null;
     _associationMappingConfiguration = null;
 }