Epiworx.Data.EntityFramework.Hour.CreateHour C# (CSharp) Method

CreateHour() public static method

Create a new Hour object.
public static CreateHour ( global hourId, global date, global duration, global isArchived, global notes, global storyId, global userId, global createdBy, global createdDate, global modifiedBy, global modifiedDate ) : Hour
hourId global Initial value of the HourId property.
date global Initial value of the Date property.
duration global Initial value of the Duration property.
isArchived global Initial value of the IsArchived property.
notes global Initial value of the Notes property.
storyId global Initial value of the StoryId property.
userId global Initial value of the UserId property.
createdBy global Initial value of the CreatedBy property.
createdDate global Initial value of the CreatedDate property.
modifiedBy global Initial value of the ModifiedBy property.
modifiedDate global Initial value of the ModifiedDate property.
return Hour
        public static Hour CreateHour(global::System.Int32 hourId, global::System.DateTime date, global::System.Decimal duration, global::System.Boolean isArchived, global::System.String notes, global::System.Int32 storyId, global::System.Int32 userId, global::System.Int32 createdBy, global::System.DateTime createdDate, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate)
        {
            Hour hour = new Hour();
            hour.HourId = hourId;
            hour.Date = date;
            hour.Duration = duration;
            hour.IsArchived = isArchived;
            hour.Notes = notes;
            hour.StoryId = storyId;
            hour.UserId = userId;
            hour.CreatedBy = createdBy;
            hour.CreatedDate = createdDate;
            hour.ModifiedBy = modifiedBy;
            hour.ModifiedDate = modifiedDate;
            return hour;
        }