christoforosl / codegen-lib Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/codegen-lib
Automatically exported from code.google.com/p/codegen-lib
Hi,
Currently the functionality is partially present in the code, but there are no means to activate it.
Moreover, bypassing the check by setting attribute manually on the dbmapper class still doesn't allow to insert object properly since an exception is thrown.
Please check
Table Layout - https://cloud.githubusercontent.com/assets/12987662/21766392/ddfc252a-d676-11e6-8519-8f43239b1648.JPG
Object Values before calling save method https://cloud.githubusercontent.com/assets/12987662/21766427/29da750a-d677-11e6-8d29-600aa943e1c6.png
Exception
{System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'OrderId', table 'Model.dbo.Orders'; column does not allow nulls. INSERT fails. The statement has been terminated.
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at org.model.lib.DBMapper.insert(IModelObject mo)
at org.model.lib.DBMapper.saveModelObject(IModelObject o)
at org.model.lib.DBMapper.save(IModelObject o)
at DataModel.App.OrdersDBMapper.saveOrders(Orders mo)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.