示例#1
0
        private User(string first_name, string last_name, string email)
        {
            Id        = new UserID(Guid.NewGuid());
            FirstName = first_name;
            LastName  = last_name;
            Email     = email;

            // register here domain event
        }
示例#2
0
 private User()
 {
     Id = new UserID(Guid.NewGuid());
 }