当我使用visual studio 2013显示阿拉伯字符时,它们会正确显示但是当我使用visual studio 2015时,如果我使用实体类,阿拉伯字符会显示奇怪的字符(ÇáãÌãæÚÉ),但如果我使用模型阿拉伯字符正确显示。视觉工作室2015中的实体有什么问题?
namespace SimpleIAP
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public partial class tblProduct
{
public tblProduct()
{
this.tblPurchaseDetails = new HashSet<tblPurchaseDetail>();
this.tblProductOpeningBalances = new HashSet<tblProductOpeningBalance>();
this.tblSalesInvoiceDetails = new HashSet<tblSalesInvoiceDetail>();
this.tblStores = new HashSet<tblStore>();
}
[Key]
[DisplayName("رقم المنتج")]
public int ProductID { get; set; }
[Required(ErrorMessage = "مطلوب")]
[DisplayName("اسم المنتج")]
public string Name { get; set; }
[Required(ErrorMessage = "مطلوب")]
[DisplayName("المجموعة")]
[ForeignKey("tblCategory")]
public int CategoryID_FK { get; set; }
[DisplayName("الوصف")]
public string Description { get; set; }
[DisplayName("حد إعادة الطلب")]
[RegularExpression("^[0-9]+$", ErrorMessage = "أرقام فقط")]
public int ReOrderLimit { get; set; }
[DisplayName("سعر القطاعى")]
[RegularExpression(@"(^\d*\.?\d*[0-9]+\d*$)|(^[0-9]+\d*\.\d*$)", ErrorMessage = "أرقام فقط")]
public decimal PriceRetail { get; set; }
[DisplayName("سعر الجملة")]
[RegularExpression(@"(^\d*\.?\d*[0-9]+\d*$)|(^[0-9]+\d*\.\d*$)", ErrorMessage = "أرقام فقط")]
public decimal PriceWholeSale { get; set; }
public virtual tblCategory tblCategory { get; set; }
public virtual ICollection<tblStore> tblStores { get; set; }
public virtual ICollection<tblPurchaseDetail> tblPurchaseDetails { get; set; }
public virtual ICollection<tblSalesInvoiceDetail> tblSalesInvoiceDetails { get; set; }
public virtual ICollection<tblProductOpeningBalance> tblProductOpeningBalances { get; set; }
}
}