コード例 #1
0
        /// <summary>
        /// Create a new instance of a Project Reports.
        /// </summary>
        /// <param name="context"></param>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="toDate"></param>
        /// <param name="fromDate"></param>
        /// <param name="isFinal"></param>
        /// <returns></returns>
        public static Entity.ProjectReport CreateProjectReport(this PimsContext context, int id, string name = null, DateTime?toDate = null, DateTime?fromDate = null, bool isFinal = false, Agency agency = null)
        {
            var projectReport = EntityHelper.CreateProjectReport(id, name, toDate, fromDate, isFinal, agency);

            context.ProjectReports.Add(projectReport);
            return(projectReport);
        }