0
mrvithan created
How to reference to ABp User object from Entity class ?
For example,
[ForeignKey("ApproveManagerId")]
public virtual User ApproveManager {get;set;}
[Required]
public virtual int ApproveManagerId { get; set;
I have tried this way but compile with error.
Please advise.
5 Answer(s)
-
0
Hi,
This is the right way actually. What is the compile error you are getting ?
-
0
User class is not defined .... seems that i don't know its namespace.
-
0
If you are using module-zero and created template from aspnetboilerplate.com, then your project should contain a User class. Can you search it?
-
0
Nope. I try to reference to AbpUser<TTenant, TUser>, but still no luck
-
0
Ok i can see how already. Thx.