示例#1
0
文件: Model2.cs 项目: HuGuo/ef
 /// <summary>
 /// Create a new Folder object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static Folder CreateFolder(global::System.Int32 id, global::System.Int32 userId)
 {
     Folder folder = new Folder();
     folder.Id = id;
     folder.UserId = userId;
     return folder;
 }
示例#2
0
文件: Model2.cs 项目: HuGuo/ef
 /// <summary>
 /// Deprecated Method for adding a new object to the Folders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFolders(Folder folder)
 {
     base.AddObject("Folders", folder);
 }