예제 #1
0
 /// <summary>
 /// Creates a StreamDescriptor class with the given name and other information
 /// </summary>
 /// <param name="name">name of the stream.</param>
 /// <param name="entityDescriptor">instance of entity descriptor that contains this stream.</param>
 internal StreamDescriptor(string name, EntityDescriptor entityDescriptor) : base(EntityStates.Unchanged)
 {
     Debug.Assert(!String.IsNullOrEmpty(name), "!String.IsNullOrEmpty(name)");
     Debug.Assert(entityDescriptor != null, "entityDescriptor != null");
     this.streamLink       = new DataServiceStreamLink(name);
     this.entityDescriptor = entityDescriptor;
 }
예제 #2
0
 /// <summary>
 /// Creates a StreamDescriptor class for the default stream (MR) associated with an entity.
 /// </summary>
 /// <param name="entityDescriptor">instance of entity descriptor that contains this stream.</param>
 internal StreamDescriptor(EntityDescriptor entityDescriptor)
     : base(EntityStates.Unchanged)
 {
     Debug.Assert(entityDescriptor != null, "entityDescriptor != null");
     this.streamLink       = new DataServiceStreamLink(null);
     this.entityDescriptor = entityDescriptor;
 }
예제 #3
0
 internal StreamDescriptor(string name, System.Data.Services.Client.EntityDescriptor entityDescriptor) : base(EntityStates.Unchanged)
 {
     this.streamLink = new DataServiceStreamLink(name);
     this.entityDescriptor = entityDescriptor;
 }
예제 #4
0
 internal StreamDescriptor(string name, System.Data.Services.Client.EntityDescriptor entityDescriptor) : base(EntityStates.Unchanged)
 {
     this.streamLink       = new DataServiceStreamLink(name);
     this.entityDescriptor = entityDescriptor;
 }