/// <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; }
/// <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; }
internal StreamDescriptor(string name, System.Data.Services.Client.EntityDescriptor entityDescriptor) : base(EntityStates.Unchanged) { this.streamLink = new DataServiceStreamLink(name); this.entityDescriptor = entityDescriptor; }