예제 #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);
 }