Excuse me for my poor English.
Ok, I\'m thinking about DDD approach now and it sounds great but... There is one little question about it. DDD says that the domain mo
public class BusinessObject
{
private string _user;
private string _domain;
public BusinessObject(string email)
{
string[] s = value.Split("@");
_user = s[0];
_domain = s[1];
}
public BusinessObject(string user, string domain)
{
_user = user;
_domain = domain;
}
public string Email
{
get { return _user + "@" + _domain; }
}
}
One simple solution is to just have your DAL call new BusinessObject(email)