protected override void DataPortal_Insert()
{
using (var dalManager = DataFactoryManager.GetManager())
{
var dalFactory = dalManager.GetProvider<IFeedDataFactory>();
var data = new FeedData();
using (this.BypassPropertyChecks)
{
this.CreatedBy = ((IBusinessIdentity)Csla.ApplicationContext.User.Identity).UserId;
this.CreatedDate = DateTime.Now;
this.Insert(data);
data = dalFactory.Insert(data);
this.FeedId = data.FeedId;
}
this.FieldManager.UpdateChildren(this);
}
}