This is beginning of my auto generated class Customer:
namespace Winpro
{
using System;
using System.Collections.Generic;
public partial class Customer
{
public Customer()
{
this.Blocked = false;
this.Code = "#00000";
this.RuleId = 1;
this.LocationId = 1;
this.Contacts = new ObservableListSource<Contact>();
}
public int Id { get; set; }
public string Name { get; set;
public System.DateTime Added { get; set; }
...
Why I can't extend class in this way.
namespace Winpro
{
public partial class Customer
{
public Customer()
{
this.Added = DateTime.Now;
}
Looking for simple example of setting default values in separate class or override SaveChanges() method.
Thanks