SakilaBusinessLogic.staff.Createstaff C# (CSharp) Method

Createstaff() public static method

Create a new staff object.
public static Createstaff ( global staff_id, global first_name, global last_name, global address_id, global store_id, global active, global username, global last_update ) : staff
staff_id global Initial value of the staff_id property.
first_name global Initial value of the first_name property.
last_name global Initial value of the last_name property.
address_id global Initial value of the address_id property.
store_id global Initial value of the store_id property.
active global Initial value of the active property.
username global Initial value of the username property.
last_update global Initial value of the last_update property.
return staff
        public static staff Createstaff(global::System.Byte staff_id, global::System.String first_name, global::System.String last_name, global::System.Int32 address_id, global::System.Byte store_id, global::System.Boolean active, global::System.String username, global::System.DateTime last_update)
        {
            staff staff = new staff();
            staff.staff_id = staff_id;
            staff.first_name = first_name;
            staff.last_name = last_name;
            staff.address_id = address_id;
            staff.store_id = store_id;
            staff.active = active;
            staff.username = username;
            staff.last_update = last_update;
            return staff;
        }