schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using DataRWDAL.Base;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reflection;
using XImagingXhandler.XDAL;
 
namespace DataRWDAL
{
    /// <summary>
    /// 菌落颜色库表操作类
    /// </summary>
    public class BacteriaColorDB: BaseDB
    {
        #region 查询返回菌落颜色数据集
        /// <summary>
        /// 查询返回菌落颜色数据集
        /// </summary>
        /// <returns></returns>
        public static ObservableCollection<BacteriaColor> GetBacteriaColorList()
        {
            using (var db = GetInstance())
            {
                return new ObservableCollection<BacteriaColor>(db.Queryable<BacteriaColor>().OrderBy(it => it.bacteria_color_id).ToList());
            }
        }
        #endregion
    }
}