using CloudBuilder.Core.Authorization; namespace CloudBuilder.Security { [TypeScript] public class SecurityUserPreferenceEntityKey { public string PreferenceKey { get; set; } public string Username { get; set; } public override bool Equals(object obj) { if (this == obj) return true; SecurityUserPreferenceEntityKey pkey = obj as SecurityUserPreferenceEntityKey; if (pkey == null) return false; if (PreferenceKey != pkey.PreferenceKey) return false; if (Username != pkey.Username) return false; return true; } public override string ToString() { string declareSql=""; declareSql=declareSql+$"declare @__tkey_PreferenceKey_0 varchar(50) select @__tkey_PreferenceKey_0 ='{PreferenceKey}'; " ; declareSql=declareSql+$"declare @__tkey_Username_1 varchar(50) select @__tkey_Username_1 ='{Username}'; " ; return declareSql; } } } /* builder.Entity().HasKey(c => new { c.PreferenceKey, c.Username}); */