You can create another file for your datacontext (partial class) and then use the InsertYOURENTITY and UpdateYOURENTITY partial methods to inspect your properties and assign the proper values.
Call ExecuteDynamicInsert or ExecuteDynamicUpdate after your code and you're set.