我正在接受这个错误“mapException未被用户代码处理” [英] i am gettting this error "mappingException was unhandled by user code"
本文介绍了我正在接受这个错误“mapException未被用户代码处理”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Schema specified is not valid. Errors:
LaxmiTatkalEntity.msl(630,12) : error 2019: Member Mapping specified is not valid. The type 'Edm.String[Nullable=False,DefaultValue=,MaxLength=10,Unicode=False,FixedLength=False]' of member 'TotalAmount' in type 'DBLaxmiTatkalModel.TblChallan' is not compatible with 'SqlServer.int[Nullable=False,DefaultValue=]' of member 'TotalAmount' in type 'DBLaxmiTatkalModel.Store.TblChallan'.
Line 230: public List<TblEmployeeRegistration> getallemployeeId()
Line 231: {
Line 232: var data = (from m in objentity.TblEmployeeRegistrations
Line 233:
Line 234: select m).ToList();
推荐答案
In your database table you change the datatype of TotalAmount.
now update your model.edmx model in visual studio
这篇关于我正在接受这个错误“mapException未被用户代码处理”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文