Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Project object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="buildingPlace">Initial value of the BuildingPlace property.</param>
 /// <param name="dateStart">Initial value of the DateStart property.</param>
 /// <param name="dateEnd">Initial value of the DateEnd property.</param>
 /// <param name="foremanId">Initial value of the ForemanId property.</param>
 public static Project CreateProject(global::System.Int32 id, global::System.String name, global::System.String buildingPlace, global::System.DateTime dateStart, global::System.DateTime dateEnd, global::System.Int32 foremanId)
 {
     Project project = new Project();
     project.Id = id;
     project.Name = name;
     project.BuildingPlace = buildingPlace;
     project.DateStart = dateStart;
     project.DateEnd = dateEnd;
     project.ForemanId = foremanId;
     return project;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Projects EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProjects(Project project)
 {
     base.AddObject("Projects", project);
 }