You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* 版权所有 (c) 2025 WenJY 保留所有权利。
* CLR版本: 4.0.30319.42000
* 机器名称: Mr.Wen's MacBook Pro
* 命名空间: Sln.Imm.Daemon.Repository.service.Impl
* 唯一标识: 4B5A8864-4B34-489E-986B-B4C698CED289
*
* 创建者: WenJY
* 电子邮箱:
* 创建时间: 2025-09-05 11:26:11
* 版本: V1.0.0
* 描述:
*
*--------------------------------------------------------------------
* 修改人:
* 时间:
* 修改说明:
*
* 版本: V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Sln.Imm.Daemon.Model.dao ;
using Sln.Imm.Daemon.Repository.service.@base ;
using SqlSugar ;
namespace Sln.Imm.Daemon.Repository.service.Impl ;
public class BaseDeviceInfoServiceImpl : BaseServiceImpl < BaseDeviceInfo > , IBaseDeviceInfoService
{
public BaseDeviceInfoServiceImpl ( Repository < BaseDeviceInfo > rep ) : base ( rep )
{
}
/// <summary>
/// 通过导航查询方式获取设备信息及下属参数
/// </summary>
/// <returns></returns>
/// <exception cref="InvalidOperationException"></exception>
public List < BaseDeviceInfo > GetDeviceInfosByNavigate ( )
{
try
{
return _rep . Context . Queryable < BaseDeviceInfo > ( ) . Includes ( x = > x . deviceParams )
. ToList ( ) ;
}
catch ( Exception ex )
{
throw new InvalidOperationException ( $"通过导航查询方式获取设备信息及下属参数执行异常:{ex.Message}" ) ;
}
}
}