All pastes #2068098 Raw Edit

Something

public text v1 · immutable
#2068098 ·published 2011-05-24 07:41 UTC
rendered paste body
public List<Entities.Param> GetParams(ServiceCallContext svc)
        {
            using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted }))
            {
                using (ParamEntities entityModel = ModelFactory.GetParamEntities())
                {
                    return entityModel.Params.Include("PersistUnit.DisplayUnits.DisplayUnitLabel").Include("PersistUnit.DisplayUnits.DisplayUnitValues").ToList();
                }
            }
        }