コード例 #1
0
ファイル: LookupValueBase.cs プロジェクト: radtek/BootFX
        /// <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
ファイル: LookupValueBase.cs プロジェクト: radtek/BootFX
        /// <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>
 /// Adds a range of <see cref="LookupValue"/> instances to the collection.
 /// </summary>
 public void AddRange(LookupValueCollection items)
 {
     base.AddRange(items);
 }