Giter Site home page Giter Site logo

codegen-lib's People

Contributors

christoforosl avatar

Stargazers

 avatar

Watchers

 avatar

codegen-lib's Issues

Possibility to disable auto generation of ids for PK

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.