/// <summary> /// Create a new SavedQuery object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="statement">Initial value of the Statement property.</param> /// <param name="createdUtc">Initial value of the CreatedUtc property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="lastModUtc">Initial value of the LastModUtc property.</param> /// <param name="lastModBy">Initial value of the LastModBy property.</param> public static SavedQuery CreateSavedQuery(global::System.Guid id, global::System.String name, global::System.String statement, global::System.DateTime createdUtc, global::System.Guid createdBy, global::System.DateTime lastModUtc, global::System.Guid lastModBy) { SavedQuery savedQuery = new SavedQuery(); savedQuery.Id = id; savedQuery.Name = name; savedQuery.Statement = statement; savedQuery.CreatedUtc = createdUtc; savedQuery.CreatedBy = createdBy; savedQuery.LastModUtc = lastModUtc; savedQuery.LastModBy = lastModBy; return savedQuery; }
/// <summary> /// Deprecated Method for adding a new object to the SavedQueries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSavedQueries(SavedQuery savedQuery) { base.AddObject("SavedQueries", savedQuery); }