Ejemplo n.º 1
0
        /// <summary>
        /// Gets entities where Value matches the given specification.
        /// </summary>
        /// <remarks>
        /// Created for column <c>Value</c>
        /// </remarks>
        public static LookupValueCollection GetByValue(int value, BootFX.Common.Data.SqlOperator valueOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(LookupValue));
            filter.Constraints.Add("Value", valueOperator, value);
            LookupValueCollection results = ((LookupValueCollection)(filter.ExecuteEntityCollection()));

            return(results);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the <see cref="ConfigItem"/> entity where the ID matches the given specification.
        /// </summary>
        public static ConfigItem GetById(int configId, BootFX.Common.Data.SqlOperator configIdOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ConfigItem));
            filter.Constraints.Add("ConfigId", configIdOperator, configId);
            ConfigItem results = ((ConfigItem)(filter.ExecuteEntity()));

            return(results);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets entities where Name matches the given specification.
        /// </summary>
        /// <remarks>
        /// Created for column <c>Name</c>
        /// </remarks>
        public static ConfigItemCollection GetByName(string name, BootFX.Common.Data.SqlOperator nameOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ConfigItem));
            filter.Constraints.Add("Name", nameOperator, name);
            ConfigItemCollection results = ((ConfigItemCollection)(filter.ExecuteEntityCollection()));

            return(results);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Gets entities where Description matches the given specification.
        /// </summary>
        /// <remarks>
        /// Created for column <c>Description</c>
        /// </remarks>
        public static LookupValueCollection GetByDescription(string description, BootFX.Common.Data.SqlOperator descriptionOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(LookupValue));
            filter.Constraints.Add("Description", descriptionOperator, description);
            LookupValueCollection results = ((LookupValueCollection)(filter.ExecuteEntityCollection()));

            return(results);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Gets the <see cref="LookupValue"/> entity where the ID matches the given specification.
        /// </summary>
        public static LookupValue GetById(int lookupId, BootFX.Common.Data.SqlOperator lookupIdOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(LookupValue));
            filter.Constraints.Add("LookupId", lookupIdOperator, lookupId);
            LookupValue results = ((LookupValue)(filter.ExecuteEntity()));

            return(results);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Gets entities where Version matches the given specification.
        /// </summary>
        /// <remarks>
        /// Created for column <c>Version</c>
        /// </remarks>
        public static ConfigItemCollection GetByVersion(int version, BootFX.Common.Data.SqlOperator versionOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ConfigItem));
            filter.Constraints.Add("Version", versionOperator, version);
            ConfigItemCollection results = ((ConfigItemCollection)(filter.ExecuteEntityCollection()));

            return(results);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Gets entities where Data matches the given specification.
        /// </summary>
        /// <remarks>
        /// Created for column <c>Data</c>
        /// </remarks>
        public static ConfigItemCollection GetByData(string data, BootFX.Common.Data.SqlOperator dataOperator, BootFX.Common.OnNotFound onNotFound)
        {
            BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ConfigItem));
            filter.Constraints.Add("Data", dataOperator, data);
            ConfigItemCollection results = ((ConfigItemCollection)(filter.ExecuteEntityCollection()));

            return(results);
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Gets entities where Address2 matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Address2</c>
 /// </remarks>
 public static ApiKeyCollection GetByAddress2(string address2, BootFX.Common.Data.SqlOperator address2Operator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Address2", address2Operator, address2);
     return ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Gets entities where LastName matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>LastName</c>
 /// </remarks>
 public static ApiKeyCollection GetByLastName(string lastName, BootFX.Common.Data.SqlOperator lastNameOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("LastName", lastNameOperator, lastName);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Gets entities where Subscribe matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Subscribe</c>
 /// </remarks>
 public static ApiKeyCollection GetBySubscribe(bool subscribe, BootFX.Common.Data.SqlOperator subscribeOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Subscribe", subscribeOperator, subscribe);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Gets entities where PasswordHash matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>PasswordHash</c>
 /// </remarks>
 public static ApiKeyCollection GetByPasswordHash(string passwordHash, BootFX.Common.Data.SqlOperator passwordHashOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("PasswordHash", passwordHashOperator, passwordHash);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Gets an entity where Email is equal to the given value.
 /// </summary>
 /// <remarks>
 /// Created for index <c>ApiKeys_Email</c>.
 /// </remarks>
 public static ApiKey GetByEmail(string email, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Email", BootFX.Common.Data.SqlOperator.EqualTo, email);
     ApiKey results = ((ApiKey)(filter.ExecuteEntity()));
     return results;
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Gets entities where Ordinal matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Ordinal</c>
 /// </remarks>
 public static CountryCollection GetByOrdinal(int ordinal, BootFX.Common.Data.SqlOperator ordinalOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Country));
     filter.Constraints.Add("Ordinal", ordinalOperator, ordinal);
     CountryCollection results = ((CountryCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Gets entities where Name matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Name</c>
 /// </remarks>
 public static LookupValueCollection GetByName(string name, BootFX.Common.Data.SqlOperator nameOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(LookupValue));
     filter.Constraints.Add("Name", nameOperator, name);
     return((LookupValueCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Get all <see cref="LookupValue"/> entities.
 /// </summary>
 public static LookupValueCollection GetAll()
 {
     BootFX.Common.Data.SqlFilter filter = BootFX.Common.Data.SqlFilter.CreateGetAllFilter(typeof(LookupValue));
     return((LookupValueCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Gets entities where City matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>City</c>
 /// </remarks>
 public static ApiKeyCollection GetByCity(string city, BootFX.Common.Data.SqlOperator cityOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("City", cityOperator, city);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Gets entities where CountryId matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>CountryId</c>
 /// </remarks>
 public static ApiKeyCollection GetByCountryId(int countryId, BootFX.Common.Data.SqlOperator countryIdOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("CountryId", countryIdOperator, countryId);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Gets the <see cref="Country"/> entity where the ID matches the given specification.
 /// </summary>
 public static Country GetById(int countryId, BootFX.Common.Data.SqlOperator countryIdOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Country));
     filter.Constraints.Add("CountryId", countryIdOperator, countryId);
     Country results = ((Country)(filter.ExecuteEntity()));
     return results;
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Gets the <see cref="ApiKey"/> entity where the ID matches the given specification.
 /// </summary>
 public static ApiKey GetById(int apiKeyId, BootFX.Common.Data.SqlOperator apiKeyIdOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("ApiKeyId", apiKeyIdOperator, apiKeyId);
     ApiKey results = ((ApiKey)(filter.ExecuteEntity()));
     return results;
 }
 /// <summary>
 /// Gets entities where RowVersion matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>RowVersion</c>
 /// </remarks>
 public static ResourceCollection GetByRowVersion(int rowVersion, BootFX.Common.Data.SqlOperator rowVersionOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("RowVersion", rowVersionOperator, rowVersion);
     ResourceCollection results = ((ResourceCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 21
0
 /// <summary>
 /// Gets entities where Name matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Name</c>
 /// </remarks>
 public static ConfigItem GetByName(string name, BootFX.Common.Data.SqlOperator nameOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ConfigItem));
     filter.Constraints.Add("Name", nameOperator, name);
     return((ConfigItem)(filter.ExecuteEntity()));
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Get all of the child 'UserItem' entities.
 /// </summary>
 /// <remarks>
 /// Created for link <c>ApiKey</c>.  (Concrete method.)
 /// </remarks>
 public static UserItemCollection GetUserItemItems(int apiKeyId)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(UserItem));
     filter.Constraints.Add("ApiKeyId", BootFX.Common.Data.SqlOperator.EqualTo, apiKeyId);
     return ((UserItemCollection)(filter.ExecuteEntityCollection()));
 }
 /// <summary>
 /// Gets entities where RowUpdatedUtc matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>RowUpdatedUtc</c>
 /// </remarks>
 public static ResourceCollection GetByRowUpdatedUtc(System.DateTime rowUpdatedUtc, BootFX.Common.Data.SqlOperator rowUpdatedUtcOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("RowUpdatedUtc", rowUpdatedUtcOperator, rowUpdatedUtc);
     ResourceCollection results = ((ResourceCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Gets an entity where Username is equal to the given value.
 /// </summary>
 /// <remarks>
 /// Created for index <c>ApiKeys_Username</c>.
 /// </remarks>
 public static ApiKey GetByUsername(string username, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Username", BootFX.Common.Data.SqlOperator.EqualTo, username);
     ApiKey results = ((ApiKey)(filter.ExecuteEntity()));
     return results;
 }
 /// <summary>
 /// Gets entities where RowUpdatedUserId matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>RowUpdatedUserId</c>
 /// </remarks>
 public static ResourceCollection GetByRowUpdatedUserId(int rowUpdatedUserId, BootFX.Common.Data.SqlOperator rowUpdatedUserIdOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("RowUpdatedUserId", rowUpdatedUserIdOperator, rowUpdatedUserId);
     return ((ResourceCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Gets entities where PasswordSalt matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>PasswordSalt</c>
 /// </remarks>
 public static ApiKeyCollection GetByPasswordSalt(int passwordSalt, BootFX.Common.Data.SqlOperator passwordSaltOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("PasswordSalt", passwordSaltOperator, passwordSalt);
     return ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
 }
 /// <summary>
 /// Gets entities where RowLastTransactionId matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>RowLastTransactionId</c>
 /// </remarks>
 public static ResourceCollection GetByRowLastTransactionId(System.Guid rowLastTransactionId, BootFX.Common.Data.SqlOperator rowLastTransactionIdOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("RowLastTransactionId", rowLastTransactionIdOperator, rowLastTransactionId);
     ResourceCollection results = ((ResourceCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 28
0
 /// <summary>
 /// Gets entities where IsActive matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>IsActive</c>
 /// </remarks>
 public static ApiKeyCollection GetByIsActive(bool isActive, BootFX.Common.Data.SqlOperator isActiveOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("IsActive", isActiveOperator, isActive);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
 /// <summary>
 /// Gets entities where SecurityGroupId matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>SecurityGroupId</c>
 /// </remarks>
 public static ResourceCollection GetBySecurityGroupId(int securityGroupId, BootFX.Common.Data.SqlOperator securityGroupIdOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("SecurityGroupId", securityGroupIdOperator, securityGroupId);
     return ((ResourceCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Gets entities where FirstName matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>FirstName</c>
 /// </remarks>
 public static ApiKeyCollection GetByFirstName(string firstName, BootFX.Common.Data.SqlOperator firstNameOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("FirstName", firstNameOperator, firstName);
     return ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
 }
 /// <summary>
 /// Gets entities where ContractGroupId matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>ContractGroupId</c>
 /// </remarks>
 public static ResourceCollection GetByContractGroupId(int contractGroupId, BootFX.Common.Data.SqlOperator contractGroupIdOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("ContractGroupId", contractGroupIdOperator, contractGroupId);
     ResourceCollection results = ((ResourceCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 32
0
 /// <summary>
 /// Gets entities where Company matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Company</c>
 /// </remarks>
 public static ApiKeyCollection GetByCompany(string company, BootFX.Common.Data.SqlOperator companyOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Company", companyOperator, company);
     return ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
 }
 /// <summary>
 /// Gets entities where TargetMobileClientName matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>TargetMobileClientName</c>
 /// </remarks>
 public static ResourceCollection GetByTargetMobileClientName(string targetMobileClientName, BootFX.Common.Data.SqlOperator targetMobileClientNameOperator)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("TargetMobileClientName", targetMobileClientNameOperator, targetMobileClientName);
     return ((ResourceCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 34
0
 /// <summary>
 /// Gets entities where Address3 matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Address3</c>
 /// </remarks>
 public static ApiKeyCollection GetByAddress3(string address3, BootFX.Common.Data.SqlOperator address3Operator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Address3", address3Operator, address3);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
 /// <summary>
 /// Gets entities where CurrentMobileClientName matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>CurrentMobileClientName</c>
 /// </remarks>
 public static ResourceCollection GetByCurrentMobileClientName(string currentMobileClientName, BootFX.Common.Data.SqlOperator currentMobileClientNameOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("CurrentMobileClientName", currentMobileClientNameOperator, currentMobileClientName);
     ResourceCollection results = ((ResourceCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 36
0
 /// <summary>
 /// Gets entities where Region matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>Region</c>
 /// </remarks>
 public static ApiKeyCollection GetByRegion(string region, BootFX.Common.Data.SqlOperator regionOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("Region", regionOperator, region);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
 /// <summary>
 /// Gets entities where ForceCodeCapture matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>ForceCodeCapture</c>
 /// </remarks>
 public static ResourceCollection GetByForceCodeCapture(bool forceCodeCapture, BootFX.Common.Data.SqlOperator forceCodeCaptureOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Resource));
     filter.Constraints.Add("ForceCodeCapture", forceCodeCaptureOperator, forceCodeCapture);
     ResourceCollection results = ((ResourceCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 38
0
 /// <summary>
 /// Gets an entity where Name is equal to the given value.
 /// </summary>
 /// <remarks>
 /// Created for index <c>Countries_Name</c>.
 /// </remarks>
 public static Country GetByName(string name, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(Country));
     filter.Constraints.Add("Name", BootFX.Common.Data.SqlOperator.EqualTo, name);
     Country results = ((Country)(filter.ExecuteEntity()));
     return results;
 }
Ejemplo n.º 39
0
 /// <summary>
 /// Gets entities where PostalCode matches the given specification.
 /// </summary>
 /// <remarks>
 /// Created for column <c>PostalCode</c>
 /// </remarks>
 public static ApiKeyCollection GetByPostalCode(string postalCode, BootFX.Common.Data.SqlOperator postalCodeOperator, BootFX.Common.OnNotFound onNotFound)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("PostalCode", postalCodeOperator, postalCode);
     ApiKeyCollection results = ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
     return results;
 }
Ejemplo n.º 40
0
 /// <summary>
 /// Get all of the child 'ApiKey' entities.
 /// </summary>
 /// <remarks>
 /// Created for link <c>Country</c>.  (Concrete method.)
 /// </remarks>
 public static ApiKeyCollection GetApiKeyItems(int countryId)
 {
     BootFX.Common.Data.SqlFilter filter = new BootFX.Common.Data.SqlFilter(typeof(ApiKey));
     filter.Constraints.Add("CountryId", BootFX.Common.Data.SqlOperator.EqualTo, countryId);
     return ((ApiKeyCollection)(filter.ExecuteEntityCollection()));
 }
Ejemplo n.º 41
0
 /// <summary>
 /// Get all <see cref="ConfigItem"/> entities.
 /// </summary>
 public static ConfigItemCollection GetAll()
 {
     BootFX.Common.Data.SqlFilter filter = BootFX.Common.Data.SqlFilter.CreateGetAllFilter(typeof(ConfigItem));
     return((ConfigItemCollection)(filter.ExecuteEntityCollection()));
 }