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.

14 lines
310 B
C#

using System;
using System.Reflection;
using SqlSugar;
namespace EntrustSettle.Common.DB.Extension;
public static class DbEntityException
{
public static object GetEntityTenant(this Type type)
{
var tenant = type.GetCustomAttribute<TenantAttribute>();
return tenant?.configId;
}
}