Beispiel #1
0
 /// <summary>
 /// Creates a new ConnectionOptions from the current ConnectionOptions and assigns the specified EntityServiceOption.
 /// </summary>
 /// <param name="entityServiceOption">The EntityServiceOption to be assigned.</param>
 /// <returns>A new ConnectionOptions instance.</returns>
 public ConnectionOptions WithEntityServiceOption(EntityServiceOption entityServiceOption)
 {
     return(new ConnectionOptions(this)
     {
         EntityServiceOption = entityServiceOption
     });
 }
Beispiel #2
0
 /// <summary>
 /// Creates a ConnectionOptions instance with the given name and options.
 /// </summary>
 /// <param name="name">The name of the ConnectionOptions.</param>
 /// <param name="shouldConnect">Specifies whether the EntityManager will attempt to connect to the EntityServer as soon as it is created.</param>
 /// <param name="dataSourceExtension">Specifies what run-time data source key(s) will be used.</param>
 /// <param name="entityServiceOption">Specifies whether you will be using local or distributed data sources.</param>
 /// <param name="compositionContextName">The name of the <see cref="CompositionContext"/> used to resolve dependencies and extensions.</param>
 /// <param name="serviceKey">Names the key providing the address of the application server with which the EntityManager will communicate.</param>
 /// <param name="isDesignTime">Specifies whether this ConnectionOptions instance is for design time.</param>
 public ConnectionOptions(string name, bool shouldConnect         = true, string dataSourceExtension = null,
                          EntityServiceOption entityServiceOption = EntityServiceOption.UseDefaultService,
                          string compositionContextName           = null, string serviceKey = null,
                          bool isDesignTime = false)
 {
     Name                    = name;
     ShouldConnect           = shouldConnect;
     DataSourceExtension     = dataSourceExtension;
     EntityServiceOption     = entityServiceOption;
     _compositionContextName = compositionContextName;
     ServiceKey              = serviceKey;
     IsDesignTime            = isDesignTime;
 }
 /// <summary>
 /// Creates a ConnectionOptions instance with the given name and options.
 /// </summary>
 /// <param name="name">The name of the ConnectionOptions.</param>
 /// <param name="shouldConnect">Specifies whether the EntityManager will attempt to connect to the EntityServer as soon as it is created.</param>
 /// <param name="dataSourceExtension">Specifies what run-time data source key(s) will be used.</param>
 /// <param name="entityServiceOption">Specifies whether you will be using local or distributed data sources.</param>
 /// <param name="compositionContextName">The name of the <see cref="CompositionContext"/> used to resolve dependencies and extensions.</param>
 /// <param name="serviceKey">Names the key providing the address of the application server with which the EntityManager will communicate.</param>
 /// <param name="isDesignTime">Specifies whether this ConnectionOptions instance is for design time.</param>
 public ConnectionOptions(string name, bool shouldConnect = true, string dataSourceExtension = null,
                          EntityServiceOption entityServiceOption = EntityServiceOption.UseDefaultService,
                          string compositionContextName = null, string serviceKey = null,
                          bool isDesignTime = false)
 {
     Name = name;
     ShouldConnect = shouldConnect;
     DataSourceExtension = dataSourceExtension;
     EntityServiceOption = entityServiceOption;
     _compositionContextName = compositionContextName;
     ServiceKey = serviceKey;
     IsDesignTime = isDesignTime;
 }
 /// <summary>
 /// Creates a new ConnectionOptions from the current ConnectionOptions and assigns the specified EntityServiceOption.
 /// </summary>
 /// <param name="entityServiceOption">The EntityServiceOption to be assigned.</param>
 /// <returns>A new ConnectionOptions instance.</returns>
 public ConnectionOptions WithEntityServiceOption(EntityServiceOption entityServiceOption)
 {
     return new ConnectionOptions(this) { EntityServiceOption = entityServiceOption };
 }