I tried a code like below but i get some null value is not permitted to save type of exception
Would you please post the exact exception text?
When you save an entity, if there is an entity field that's not set to a value, the field is not generated in the INSERT / UPDARE statement, i.e. LLBLGen doesn't set null for unchanged fields. It simply ignores them.
So most probably you get this exception from the database, as you attempt to save an entity without setting values for fields which don't accept null in the database.
So either you have default values in the database to solve this issue, or you set these fields to some value before saving. And if you want to set default values automatically in the code rather than the database, you can have them set in Entity validation code (ValidateEntityBeforeSave).
So that you don't need to set them whenever you gonna save a new entity.