Beispiel #1
0
        /// <summary>
        /// Creates a new instance of the Sol_EmployeesLog class and populates it with data from the specified SqlDataReader.
        /// </summary>
        protected virtual Sol_EmployeesLog MakeSol_EmployeesLog(SqlDataReader dataReader)
        {
            Sol_EmployeesLog sol_EmployeesLog = new Sol_EmployeesLog();

            sol_EmployeesLog.LogId        = SqlClientUtility.GetInt64(dataReader, "LogId", 0);
            sol_EmployeesLog.UserId       = SqlClientUtility.GetGuid(dataReader, "UserId", Guid.Empty);
            sol_EmployeesLog.PunchInTime  = SqlClientUtility.GetDateTime(dataReader, "PunchInTime", new DateTime(0));
            sol_EmployeesLog.PunchOutTime = SqlClientUtility.GetDateTime(dataReader, "PunchOutTime", new DateTime(0));
            sol_EmployeesLog.Comments     = SqlClientUtility.GetString(dataReader, "Comments", String.Empty);
            sol_EmployeesLog.Approved     = SqlClientUtility.GetBoolean(dataReader, "Approved", false);
            sol_EmployeesLog.Modified     = SqlClientUtility.GetBoolean(dataReader, "Modified", false);

            return(sol_EmployeesLog);
        }