my bo class as :
public class XRequirement : BaseObject
{
......
public override void AfterConstruction()
{
if (this.Session.IsNewObject(this) )
{
XPCollection<XEmployee> xEmployees = new XPCollection<XEmployee>(this.Session);
CriteriaOperator criterion = CriteriaOperator.Parse("LoginUser.UserName='" +User.name+"'");
xEmployees.Criteria = criterion;
foreach (XEmployee xEmployee in xEmployees)
{
this.XEmployee = xEmployee;
break;
}
}
}
.........
I can completed this funtion via a viewcontroler.
in a viewcontroler i can get current User's Name via Application.Security.UserName,but i don't know how to do in a bo class.
thx