With EntityFramework Core how can I limit a property to some values with the modelBuilder ?
(使用EntityFramework Core,如何使用modelBuilder将属性限制为某些值?)
In SQL it's :
(在SQL中是:)
CONSTRAINT chk_Frequency CHECK (Frequency IN ('Daily', 'Weekly', 'Monthly', 'Yearly'))
Thanks,
(谢谢,)
ask by Kris-I translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…