Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (string.IsNullOrEmpty(_searchCriteria.MessageType)) return;
- try
- {
- var messageType =
- (AutotransferMessageType)
- Enum.Parse(typeof (AutotransferMessageType), _searchCriteria.MessageType, true);
- if (Enum.IsDefined(typeof (AutotransferMessageType), messageType))
- {
- criteriaQuery.Add(
- Restrictions.Eq(
- "AutotransferInputRecord." + AutotransferLogSearchCriteria.MessageTypePropertyName,
- messageType));
- }
- else
- {
- criteriaQuery.Add(Restrictions.IsNull("AutotransferInputRecord"));
- }
- }
- catch
- {
- criteriaQuery.Add(Restrictions.IsNull("AutotransferInputRecord"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement