public static coreModel.Note ToCoreModel(this webModel.Note note)
        {
            var retVal = new coreModel.Note();

            retVal.InjectFrom(note);
            return(retVal);
        }
示例#2
0
        public static coreModel.Note ToCoreModel(this dataModel.Note entity)
        {
            if (entity == null)
                throw new ArgumentNullException("entity");

            var retVal = new coreModel.Note();
            retVal.InjectFrom(entity);

            return retVal;
        }
示例#3
0
文件: NoteConverter.cs 项目: HydAu/vc
        public static coreModel.Note ToCoreModel(this dataModel.Note entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }

            var retVal = new coreModel.Note();

            retVal.InjectFrom(entity);

            return(retVal);
        }
示例#4
0
文件: NoteConverter.cs 项目: HydAu/vc
        public static dataModel.Note ToDataModel(this coreModel.Note note)
        {
            if (note == null)
            {
                throw new ArgumentNullException("note");
            }

            var retVal = new dataModel.Note();

            retVal.InjectFrom(note);
            retVal.AuthorName   = note.CreatedBy;
            retVal.ModifierName = note.ModifiedBy;
            return(retVal);
        }
示例#5
0
		public static coreModel.Note ToCoreModel(this webModel.Note note)
		{
			var retVal = new coreModel.Note();
			retVal.InjectFrom(note);
			return retVal;
		}