Пример #1
0
        public GetJobCardMaintanceQM GetJobCardMaintane()
        {
            GetJobCardMaintanceQM model = new GetJobCardMaintanceQM();

            using (var connection = new DbConnectionProvider().CreateConnection())
            {
                connection.Open();

                var command = new GetJobCardMaintanceSelectCommand {
                    Connection = connection
                };
                model = command.Execute();
            }

            return(model);
        }
Пример #2
0
        public GetJobCardMaintanceQM Execute()
        {
            var response = new GetJobCardMaintanceQM();

            using (var sqlCommand = CreateCommand())
            {
                sqlCommand.Connection  = Connection;
                sqlCommand.CommandText = "[dbo].[uspGetJobCardMaintance]";
                sqlCommand.CommandType = CommandType.StoredProcedure;

                using (var reader = SsDbCommandHelper.ExecuteReader(sqlCommand))
                {
                    response.getJobCardMaintanceQMModelList = reader.ToList <GetJobCardMaintanceQMModel>();
                }
            }
            return(response);
        }