Re: [ASK] An Error Occured : NHibernate + Mvc Asp.Net + SharpArchitecture + Oracle Database

63 views
Skip to first unread message

Hank

unread,
Sep 25, 2012, 2:03:42 PM9/25/12
to sharp-arc...@googlegroups.com
I've never used oracle but I think you may need to change how you are generating your id value.
 
Were you using identity for Sql server? I don't know if oracle has anything like the Sql Server int identity type. So a I think you have to use a different method to generate that id value since a null isn't allow in the field.

On Wednesday, September 12, 2012 5:10:32 AM UTC-7, Yanuar wrote:
Hello everyone,

(I am sorry if my language is bad)

I just want to ask something about my problem with NHibernate + MVC Asp.Net + SharpArchitecture and Oracle, i am a newbie all about this.
I have been creating a project with all of  "them", with a SQL Server Database before.
All transaction (including save, update, delete) work fine when i used SQL Server Database, but when i migrating a database into Oracle, an error occurred.
but view data from database works fine.

Somebody help me to solve from this problem..

Thanks.

this is screenshot of my problem occurred.

Yanuar

unread,
Oct 2, 2012, 5:06:58 AM10/2/12
to sharp-arc...@googlegroups.com
Now, it's solved.
I fix it by myself, with changing code automapping to generate Id value from database, and changing a trigger from oracle.

Anyway, thanks for your suggestions Hank.
Reply all
Reply to author
Forward
0 new messages