C# Class Disco.Services.UserFlagExtensions

ファイルを表示 Open project: garysharp/Disco

Public Methods

Method Description
CanAddUserFlag ( this u, UserFlag flag ) : bool
CanAddUserFlags ( this u ) : bool
CanEditComments ( this fa ) : bool
CanRemove ( this fa ) : bool
EvaluateOnAssignmentExpression ( this ufa, DiscoDataContext Database, User AddingUser, System.DateTime TimeStamp ) : string
EvaluateOnUnassignmentExpression ( this ufa, DiscoDataContext Database, User RemovingUser, System.DateTime TimeStamp ) : string
OnAddUserFlag ( this u, DiscoDataContext Database, UserFlag flag, User AddingUser, string Comments ) : UserFlagAssignment
OnAddUserFlagUnsafe ( this u, DiscoDataContext Database, UserFlag flag, User AddingUser, string Comments ) : UserFlagAssignment
OnAssignmentExpressionFromCache ( this uf ) : Expression
OnAssignmentExpressionInvalidateCache ( this uf ) : void
OnEditComments ( this fa, string Comments ) : void
OnRemove ( this fa, DiscoDataContext Database, User RemovingUser ) : void
OnRemoveUnsafe ( this fa, DiscoDataContext Database, User RemovingUser ) : void
OnUnassignmentExpressionFromCache ( this uf ) : Expression
OnUnassignmentExpressionInvalidateCache ( this uf ) : void

Method Details

CanAddUserFlag() public static method

public static CanAddUserFlag ( this u, UserFlag flag ) : bool
u this
flag Disco.Models.Repository.UserFlag
return bool

CanAddUserFlags() public static method

public static CanAddUserFlags ( this u ) : bool
u this
return bool

CanEditComments() public static method

public static CanEditComments ( this fa ) : bool
fa this
return bool

CanRemove() public static method

public static CanRemove ( this fa ) : bool
fa this
return bool

EvaluateOnAssignmentExpression() public static method

public static EvaluateOnAssignmentExpression ( this ufa, DiscoDataContext Database, User AddingUser, System.DateTime TimeStamp ) : string
ufa this
Database Disco.Data.Repository.DiscoDataContext
AddingUser Disco.Models.Repository.User
TimeStamp System.DateTime
return string

EvaluateOnUnassignmentExpression() public static method

public static EvaluateOnUnassignmentExpression ( this ufa, DiscoDataContext Database, User RemovingUser, System.DateTime TimeStamp ) : string
ufa this
Database Disco.Data.Repository.DiscoDataContext
RemovingUser Disco.Models.Repository.User
TimeStamp System.DateTime
return string

OnAddUserFlag() public static method

public static OnAddUserFlag ( this u, DiscoDataContext Database, UserFlag flag, User AddingUser, string Comments ) : UserFlagAssignment
u this
Database Disco.Data.Repository.DiscoDataContext
flag Disco.Models.Repository.UserFlag
AddingUser Disco.Models.Repository.User
Comments string
return Disco.Models.Repository.UserFlagAssignment

OnAddUserFlagUnsafe() public static method

public static OnAddUserFlagUnsafe ( this u, DiscoDataContext Database, UserFlag flag, User AddingUser, string Comments ) : UserFlagAssignment
u this
Database Disco.Data.Repository.DiscoDataContext
flag Disco.Models.Repository.UserFlag
AddingUser Disco.Models.Repository.User
Comments string
return Disco.Models.Repository.UserFlagAssignment

OnAssignmentExpressionFromCache() public static method

public static OnAssignmentExpressionFromCache ( this uf ) : Expression
uf this
return Expression

OnAssignmentExpressionInvalidateCache() public static method

public static OnAssignmentExpressionInvalidateCache ( this uf ) : void
uf this
return void

OnEditComments() public static method

public static OnEditComments ( this fa, string Comments ) : void
fa this
Comments string
return void

OnRemove() public static method

public static OnRemove ( this fa, DiscoDataContext Database, User RemovingUser ) : void
fa this
Database Disco.Data.Repository.DiscoDataContext
RemovingUser Disco.Models.Repository.User
return void

OnRemoveUnsafe() public static method

public static OnRemoveUnsafe ( this fa, DiscoDataContext Database, User RemovingUser ) : void
fa this
Database Disco.Data.Repository.DiscoDataContext
RemovingUser Disco.Models.Repository.User
return void

OnUnassignmentExpressionFromCache() public static method

public static OnUnassignmentExpressionFromCache ( this uf ) : Expression
uf this
return Expression

OnUnassignmentExpressionInvalidateCache() public static method

public static OnUnassignmentExpressionInvalidateCache ( this uf ) : void
uf this
return void