I have:
Entity Framework DB first
public partial class Departments
{
public string Name_Department { get; set; }
public int Department_ID { get; set; }
}
When i was refreshed model all modify in file was cleared
I need:
How can i add attribute property to Serialize XML like:
[Serializable]
[XmlType(nameof(Departments))]
public partial class Departments
{
[XmlAttribute("Name_Department")]
public string Name_Department { get; set; }
[XmlAttribute("Department_ID")]
public int Department_ID { get; set; }
}