C# Class TDSM.Core.Data.OTAContextExtensions

显示文件 Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method Description
GetParentForGroup ( this ctx, int groupId ) : IQueryable
GetPermissionByNodeForGroup ( this ctx, int groupId, string node ) : IQueryable
GetPermissionByNodeForUser ( this ctx, int userId, string node ) : IQueryable
GetUser ( this ctx, string name ) : IQueryable
GetUserGroups ( this ctx, int userId ) : IQueryable
GuestGroupHasNode ( this ctx, string node, Permission permission ) : bool

Method Details

GetParentForGroup() public static method

public static GetParentForGroup ( this ctx, int groupId ) : IQueryable
ctx this
groupId int
return IQueryable

GetPermissionByNodeForGroup() public static method

public static GetPermissionByNodeForGroup ( this ctx, int groupId, string node ) : IQueryable
ctx this
groupId int
node string
return IQueryable

GetPermissionByNodeForUser() public static method

public static GetPermissionByNodeForUser ( this ctx, int userId, string node ) : IQueryable
ctx this
userId int
node string
return IQueryable

GetUser() public static method

public static GetUser ( this ctx, string name ) : IQueryable
ctx this
name string
return IQueryable

GetUserGroups() public static method

public static GetUserGroups ( this ctx, int userId ) : IQueryable
ctx this
userId int
return IQueryable

GuestGroupHasNode() public static method

public static GuestGroupHasNode ( this ctx, string node, Permission permission ) : bool
ctx this
node string
permission Permission
return bool