خطا در Entity و یه ستون از نوع Image
سلام.
من یه جدول دارم و یک ستون از نوع Image . در برنامه با استفاده از تکنولوژی Entity Framwork داده ها را واکشی کرده و در جدول نمایش می دهم این فیلد عکس خطا می ده و متن خطای ان نیز به صورت زیر می باشد
System.Data.MappingException was unhandled
Message=The type 'Edm.String' of the member 'Users_Pic' in the conceptual side type 'AriaLibModel.User' does not match with the type 'System.Byte[]' of the member 'Users_Pic' on the object side type 'AriaLib.DAL.User'.
نقل قول: خطا در Entity و یه ستون از نوع Image
سلام
این فیلد در لایه DataAccess از نوع System.Byte[] است اما در لایه جاری از نوع String ، کافیه نوع داده را عوض کنید.