Пример #1
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     this.DatabaseAccess?.Dispose();
     this.DatabaseAccess = null;
     this.Connector      = null;
     this.NavigationPropertyDescriptor = null;
     this.NavigationHelper             = null;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MultipleKeyNavigationHelper"/> class.
 /// </summary>
 /// <param name="navigationPropertyDescriptor">The navigation property descriptor.</param>
 /// <param name="formatProvider">The format provider.</param>
 public MultipleKeyNavigationHelper(INavigationPropertyDescriptor navigationPropertyDescriptor, ICommandFormatProvider formatProvider)
 {
     this.NavigationPropertyDescriptor = navigationPropertyDescriptor;
     this.FormatProvider = formatProvider;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NavigationDatabaseAccess"/> class.
 /// </summary>
 /// <param name="serviceProvider">Reference to the scoped service provider.</param>
 /// <param name="connector">Reference to the scoped connector.</param>
 /// <param name="navigationPropertyDescriptor">The navigation property descriptor.</param>
 internal NavigationDatabaseAccess(IServiceProvider serviceProvider, IDatabaseConnector connector, INavigationPropertyDescriptor navigationPropertyDescriptor)
 {
     this.ServiceProvider = serviceProvider;
     this.Connector       = connector;
     this.NavigationPropertyDescriptor = navigationPropertyDescriptor;
 }