- 2025年05月29日
- 星期四

我是MVC 5 asp.net身份模型的新手,正在寻找自定义标准 Asp.net身份的方法以满足我的需求.通过 TypeCast Exception上的博客和 Stackoverflow: How to model Identity上的一个,我能够在ApplicationUser和ApplicationRole表中创建自己的元素.但是,我的要求是通过

需求是status为new的id需要唯一,其他的数据不做要求。 drop table test purge; create table test ( id number, status varchar2(10) ); create unique index uind_t_id on test(decode(status,new,id,null)); insert into test