Core/SM/Dal/SysDetDal.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Data;
using Core.SM.Model;

namespace Core.SM.Dal
{
    class SysDetDal : BaseRepository<SysDet>
    {
        private SysDetDal() { }
        private static readonly object syncObject = new object();
        private static SysDetDal singleton;




        public static SysDetDal Instance
        {
            get
            {
                if (singleton == null)
                {
                    lock (syncObject)
                    {
                        if (singleton == null)
                        {
                            singleton = new SysDetDal();
                        }
                    }
                }
                return singleton;
            }
        }

        public IEnumerable<SysDet> GetListBy(int parentid = 0)
        {
            return from n in base.GetAll()
                   where n.ParentId == parentid
                   orderby n.Sortnum
                   select n;
        }

  
        public IEnumerable<SysDet> GetSysListBy(int sysId)
        {
            return GetWhere(new { SysId = sysId });
        }
 









  
后面还有 4 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。