zzzprojects / Dapper-Plus

Dapper Plus - High-Efficient Bulk Actions (Insert, Update, Delete, and Merge) for .NET
https://dapper-plus.net/
385 stars 85 forks source link

BulkInsert with nullable propery error #1

Closed hanc2006 closed 8 years ago

hanc2006 commented 8 years ago

Hi, I try to update one table with this code


DapperPlusManager.Entity<BookingRequest>().Table("BookingRequest").Identity(x => x.Id);
                UnitOfWork.Context.Database.Connection.Open();
                UnitOfWork.Context.Database.Connection.BulkInsert(booking)
                                                       .AlsoBulkInsert(b => b.BookingRequestResults);
                UnitOfWork.Context.Database.Connection.Close();

But with no success. The framework ask me to set one null-able integer property inside the class BookingRequest. But must be empty.

zzzprojects commented 8 years ago

Thank you for reporting.

Can you post the error thrown by the application and the stack trace if possible? It will help us to identify the error.

zzzprojects commented 8 years ago

Hello Hanc2006,

We didn't receive anything from your part yet. Is it possible to post the stack trace?

hanc2006 commented 8 years ago

Hello, Yes of course. This week I am in holiday, when I come back I send you the stack trace

On Sunday, 21 August 2016, ZZZ Projects notifications@github.com wrote:

Hello Hanc2006,

We didn't receive anything from your part yet. Is it possible to post the stack trace?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zzzprojects/Dapper-Plus/issues/1#issuecomment-241263121, or mute the thread https://github.com/notifications/unsubscribe-auth/AETtg6TSku4HIQxMiFH6LEA92aJXSTJ9ks5qiGqQgaJpZM4JWqiw .

zzzprojects commented 8 years ago

Hello @hanc2006,

We still have not received anything yet.

Please let me know if you have no time, for now, to help us with this issue. We will simply close the Issues until you find some time.

Best Regards,

Jonathan

hanc2006 commented 8 years ago

Hi jonathan You can close this issue for now. I still busy with another project. Sorry...

King regard Daniele

On Monday, 19 September 2016, ZZZ Projects notifications@github.com wrote:

Hello @hanc2006 https://github.com/hanc2006,

We still have not received anything yet.

Please let me know if you have no time, for now, to help us with this issue. We will simply close the Issues until you find some time.

Best Regards,

Jonathan

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zzzprojects/Dapper-Plus/issues/1#issuecomment-248124301, or mute the thread https://github.com/notifications/unsubscribe-auth/AETtg2wBrt8mMwhbk1N28lb14qQGPEeTks5qrvdIgaJpZM4JWqiw .

zzzprojects commented 8 years ago

No problem, I fully understand this. Feel free to open a new issue or reopen this one when you have time to work again on it.

Best Regards,

Jonathan