Esempio n. 1
0
        //read

        private static UploadQueue GetNextItemFromQueue()
        {
            try
            {
                return(EVSDatabase.First <UploadQueue>("SELECT TOP 1 * FROM [dbo].[UploadQueue] WHERE [Processing] = 0 ORDER BY [UploadedDate] ASC"));
            }
            catch //(Exception exc)
            {
                return(null);
            }
        }
Esempio n. 2
0
 public static Status GetCurrentStatus(string fileId, string userId)
 {
     return(EVSDatabase.First <Status>("SELECT TOP 1 * FROM [dbo].[Status] WHERE [FileID] = @0 AND [UserID] = @1 ORDER BY StatusID DESC", fileId, userId));
 }
Esempio n. 3
0
 public static MessageType GetMessageTypeByType(string type)
 {
     return(EVSDatabase.First <MessageType>("SELECT * FROM [dbo].[MessageType] WHERE [Type] LIKE @0", type));
 }
Esempio n. 4
0
        //read

        public static Status GetStatus(int statusId)
        {
            return(EVSDatabase.First <Status>("SELECT * FROM [dbo].[Status] WHERE StatusID = @0", statusId));
        }
Esempio n. 5
0
 public static MessageType GetMessageTypeByID(int messageTypeId)
 {
     return(EVSDatabase.First <MessageType>("SELECT * FROM [dbo].[MessageType] WHERE [MessageTypeID] = @0", messageTypeId));
 }
 public static Extension GetExtension(string fileId)
 {
     return(EVSDatabase.First <Extension>("SELECT * FROM [dbo].[Extension] WHERE FileID LIKE @0", fileId));
 }
        //read

        public static Extension GetExtension(int extensionId)
        {
            return(EVSDatabase.First <Extension>("SELECT * FROM [dbo].[Extension] WHERE ExtensionID = @0", extensionId));
        }
Esempio n. 8
0
 public static ExtensionDetail GetExtensionDetail(int extensionDetailID)
 {
     return(EVSDatabase.First <ExtensionDetail>("SELECT * FROM [dbo].[ExtensionDetail] WHERE ExtensionDetailID = @0", extensionDetailID));
 }
 public static ExtensionMessage GetExtensionMessage(int extensionMessageID)
 {
     return(EVSDatabase.First <ExtensionMessage>("SELECT * FROM [dbo].[ExtensionMessage] WHERE ExtensionMessageID = @0", extensionMessageID));
 }