예제 #1
0
        public PersonEdit Create()
        {
            var result = new PersonEdit();

            LoadProperty(result, PersonEdit.NameProperty, "Xiaoping");
            CheckRules(result);
            MarkNew(result);
            return(result);
        }
예제 #2
0
        public PersonEdit Fetch()
        {
            var result = new PersonEdit();

            LoadProperty(result, PersonEdit.NameProperty, "Xiaoping");
            CheckRules(result);
            MarkOld(result);
            return(result);
        }