예제 #1
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);
        }
예제 #2
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);
        }
예제 #3
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);
        }
예제 #4
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);
        }
예제 #5
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);
        }
예제 #6
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);
        }
예제 #7
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);
        }
예제 #8
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()));
 }
예제 #9
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()));
 }