PetaPoco Transaction in Multithread Env

前端 未结 3 1545
旧时难觅i
旧时难觅i 2021-01-12 17:41

I just test PetaPoco Transaction in a multithread way...

I have a simple test case :

-- Simple value object call it MediaDevice -- Insert a record an update

3条回答
  •  Happy的楠姐
    2021-01-12 18:28

    sorry dude.. yes you are right. they change the object to be null. so you cannot use the same object to threading. you have to use they use described like db=GetDataBase() ; db2=GetDataBase();

    otherwise you can change the source code for your requirement. i think their license allow it. but i am not sure.

提交回复
热议问题