开发者

how to Unit test fluent mappings, with in memory sqlite when you got sequences

开发者 https://www.devze.com 2023-02-08 02:24 出处:网络
My Real db is oracle, and has sequences(not under my control). I wanna test the mappings with in memory sqlite db,

My Real db is oracle, and has sequences(not under my control). I wanna test the mappings with in memory sqlite db, I thought about a few options, do a sequence conventions(if possible) that will be active only when I'm on oracle, make the Id Mapping call another method that will resolve the id mapping 开发者_运维百科by it self and ask some one about the configured db.

What is the best practice for my problem?


Use the GenretedBy.Native([seqName]);

0

精彩评论

暂无评论...
验证码 换一张
取 消