BlueCollar.SQLiteRepository.GetSchedule C# (CSharp) Method

GetSchedule() public method

Gets the schedule with the given ID, NOT including its related scheduled jobs.
public GetSchedule ( long id, IDbTransaction transaction ) : ScheduleRecord
id long The ID of the schedule to get.
transaction IDbTransaction The transaction to use, if applicable.
return ScheduleRecord
        public ScheduleRecord GetSchedule(long id, IDbTransaction transaction)
        {
            const string Sql =
            @"SELECT *
            FROM [BlueCollarSchedule]
            WHERE
            [Id] = @Id;";

            return this.connection.Query<ScheduleRecord>(
                Sql,
                new { Id = id },
                transaction,
                true,
                null,
                null).FirstOrDefault();
        }