ow
This commit is contained in:
commit
f05d2d215f
678 files changed
+73865
No files matched your search
@@ -0,0 +1,33 @@
|
||||
|
||||
using CloudBuilder.Core.Authorization;
|
||||
namespace CloudBuilder.Security
|
||||
{
|
||||
[TypeScript]
|
||||
public class SecurityUserActorEntityKey
|
||||
{
|
||||
public string ActorName { get; set; }
|
||||
public string UserName { get; set; }
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (this == obj) return true;
|
||||
|
||||
SecurityUserActorEntityKey pkey = obj as SecurityUserActorEntityKey;
|
||||
if (pkey == null) return false;
|
||||
|
||||
if (ActorName != pkey.ActorName) return false;
|
||||
if (UserName != pkey.UserName) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string declareSql="";
|
||||
declareSql=declareSql+$"declare @__tkey_ActorName_0 varchar(50) select @__tkey_ActorName_0 ='{ActorName}'; " ; declareSql=declareSql+$"declare @__tkey_UserName_1 varchar(50) select @__tkey_UserName_1 ='{UserName}'; " ;
|
||||
return declareSql;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* builder.Entity<SecurityUserActorEntity>().HasKey(c => new { c.ActorName, c.UserName}); */
|
||||
Reference in new issue
Block a user