/// <summary>
        /// Create model children and populate them with core children.
        /// </summary>
        //public void PopulateChilden()
        //{
        //}

        /// <summary>
        /// Create model parents and populate them with core parents.
        /// </summary>
//        public void PopulateParents()
//        {

//            if (_core.CreatedBy != null)
//                CreatedBy = (new Models.User(_core.CreatedBy)).ToString();

//            if (_core.User != null)
//                User = new Models.User(_core.User);
//        }



        public bool Validate(Services.Data.Core.IUnitOfWork unitOfWork,
                             out List <string> errors)
        {
            try
            {
                errors = new List <string>();
                bool isValid = true;

                if (unitOfWork == null)
                {
                    throw new NullReferenceException("Services.Data.Core.IUnitOfWork cannot be null");
                }

                if (!isValid)
                {
                    return(isValid);
                }

                return(isValid);
            }
            catch
            {
                throw;
            }
        }
示例#2
0
 public Abstract(Services.Data.Core.IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }