public static List <String> GetCruiseMethods(this DAL database, bool reconMethodsOnly)
        {
            if (reconMethodsOnly)
            {
                return(new List <string>(CruiseDAL.Schema.CruiseMethods.RECON_METHODS));
            }
            List <string> cruiseMethods = null;

            try
            {
                cruiseMethods = new List <string>(CruiseMethodsDO.ReadCruiseMethodStr(database, reconMethodsOnly));
            }
            catch { }
            if (cruiseMethods == null || cruiseMethods.Count == 0)
            {
                cruiseMethods = new List <string>(CruiseDAL.Schema.CruiseMethods.SUPPORTED_METHODS);
            }

            return(cruiseMethods);
        }
 public List <TreeFieldSetupDefaultDO> GetSelectedTreeFields(CruiseMethodsDO method)
 {
     return(Database.From <TreeFieldSetupDefaultDO>()
            .Where("Method = @p1").OrderBy("FieldOrder")
            .Read(method.Code).ToList());
 }