Show / Hide Table of Contents

Class ModuleBase<TModuleKey>

模块信息基类

Inheritance
System.Object
EntityBase<TModuleKey>
ModuleBase<TModuleKey>
Liuliu.Demo.Security.Entities.Module
Inherited Members
EntityBase<TModuleKey>.Id
EntityBase<TModuleKey>.Equals(Object)
EntityBase<TModuleKey>.IsKeyEqual(TModuleKey, TModuleKey)
EntityBase<TModuleKey>.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Dynamic.ExpandoObject
Assembly: OSharp.Permissions.dll
Syntax
public abstract class ModuleBase<TModuleKey> : EntityBase<TModuleKey>, IEntity<TModuleKey> where TModuleKey : struct, IEquatable<TModuleKey>
Type Parameters
TModuleKey

Properties

Code

获取或设置 模块代码

Declaration
[Required]
public string Code { get; set; }
Property Value
System.String

Name

获取或设置 模块名称

Declaration
[Required]
public string Name { get; set; }
Property Value
System.String

OrderCode

获取或设置 节点内排序码

Declaration
public double OrderCode { get; set; }
Property Value
System.Double

ParentId

获取或设置 父模块编号

Declaration
public TModuleKey? ParentId { get; set; }
Property Value
System.Nullable<TModuleKey>

Remark

获取或设置 备注

Declaration
public string Remark { get; set; }
Property Value
System.String

TreePathIds

获取 从根结点到当前结点的树形路径编号数组,由TreePathString属性转换,此属性仅支持在内存中使用

Declaration
[NotMapped]
public TModuleKey[] TreePathIds { get; }
Property Value
TModuleKey[]

TreePathString

获取或设置 父节点树形路径,父级树链Id根据一定格式构建的字符串,形如:"$1$,$3$,$4$,$7$",编辑时更新

Declaration
public string TreePathString { get; set; }
Property Value
System.String

Extension Methods

EntityExtensions.CheckICreatedTime<TEntity, TKey>(TEntity)
EntityExtensions.CheckICreationAudited<TEntity, TKey, TUserKey>(TEntity, IPrincipal)
EntityExtensions.CheckIUpdateAudited<TEntity, TKey, TUserKey>(TEntity, IPrincipal)
ObjectExtensions.CastTo(Object, Type)
ObjectExtensions.CastTo<T>(Object)
ObjectExtensions.CastTo<T>(Object, T)
ObjectExtensions.IsIn<T>(T, T[])
ObjectExtensions.ToDynamic(Object)
ObjectExtensions.DeepClone<T>(T)
ParamterCheckExtensions.Required<T>(T, Func<T, Boolean>, String)
ParamterCheckExtensions.Required<T, TException>(T, Func<T, Boolean>, String)
ParamterCheckExtensions.CheckNotNull<T>(T, String)
TryCatchExtensions.TryCatch<T>(T, Action<T>, Action<Exception>, Action<T>)
TryCatchExtensions.TryCatch<T>(T, Action<T>, Action<Exception>)
TryCatchExtensions.TryCatch<T, TResult>(T, Func<T, TResult>, Action<Exception>, Action<T>)
TryCatchExtensions.TryCatch<T, TResult>(T, Func<T, TResult>, Action<Exception>)
TryCatchExtensions.TryFinally<T>(T, Action<T>, Action<T>)
JsonExtensions.ToJsonString(Object, Boolean, Boolean)
MapperExtensions.MapTo<TTarget>(Object)
MapperExtensions.MapTo<TSource, TTarget>(TSource, TTarget)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<TSource, TResult>(TSource, Func<TSource, TResult>)
Back to top Generated by DocFX