Esempio n. 1
0
File: Model2.cs Progetto: HuGuo/ef
 /// <summary>
 /// Create a new File object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="folderId">Initial value of the FolderId property.</param>
 public static File CreateFile(global::System.Int32 id, global::System.Int32 userId, global::System.Int32 folderId)
 {
     File file = new File();
     file.Id = id;
     file.UserId = userId;
     file.FolderId = folderId;
     return file;
 }
Esempio n. 2
0
File: Model2.cs Progetto: HuGuo/ef
 /// <summary>
 /// Deprecated Method for adding a new object to the Files EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFiles(File file)
 {
     base.AddObject("Files", file);
 }