public Folder CreateFolder(string Name) { Folder folder = new Folder(); folder.Name = Name; return folder; }
/// <summary> /// Deprecated Method for adding a new object to the Folders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFolders(Folder folder) { base.AddObject("Folders", folder); }
public void SaveFolder(Folder folder) { ((DatabaseContext)this.Database).Folders.AddObject(folder); ((DatabaseContext)this.Database).SaveChanges(); ((DatabaseContext)this.Database).Refresh(System.Data.Objects.RefreshMode.StoreWins, folder); }
/// <summary> /// Create a new Folder object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> public static Folder CreateFolder(global::System.Int32 id, global::System.String name) { Folder folder = new Folder(); folder.Id = id; folder.Name = name; return folder; }