According with the Microsoft Documentation Here, I should have access to the Attribute for [Keyless] so I can define my Model has Keyless, so that in my DBContext I could have something like:
public DbSet<MyKeylessClass> KeylessModel { get; set; }
And use _context.KeylessModel.FromSqlRaw(...)
, without having the need to add a PK to it.
I have the reference to System.ComponentModel.DataAnnotations
and all the Attributes except Keyless are there, what am I missing here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…