Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static WorkflowStatus Get(int id)
- {
- WorkflowStatus status;
- using (var db = new WorkflowDb())
- {
- status = db.WorkflowStatuses
- .Include("CurrentMappings")
- .Include("CurrentMappings.NextWorkflowStatus")
- .Include("NextMappings")
- .Include("NextMappings.CurrentWorkflowStatus")
- .Include("WorkQueueWorkflowStatusMaps")
- .Include("WorkQueueWorkflowStatusMaps.WorkQueue")
- .FirstOrDefault(x => x.Id == id);
- }
- return status;
- }
- context.ContextOptions.LazyLoadingEnabled = true;
- db.WorkflowStatuses.Include(s => s.childObject)
- .AsNoTracking()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement