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 BacteriaShapeDB:BaseDB
    {
        #region 查询返回菌落形状数据集
        /// <summary>
        /// 查询返回菌落形状数据集
        /// </summary>
        /// <returns>菌落形状数据集</returns>
        public static ObservableCollection<BacteriaShape> GetBacteriaShapeList()
        {
            using (var db = GetInstance())
            {
                return new ObservableCollection<BacteriaShape>(db.Queryable<BacteriaShape>().OrderBy(it => it.bacteria_shape_id).ToList());
            }
        }
        #endregion
    }
}