예제 #1
0
        public static Account MapTo(this MinifyAccount derived, Account source)
        {
            // this function is auto-generated by DerivedModel.tt
            // you can add your code in MannuallyTo
            source.Id   = derived.Id;
            source.Name = derived.Name;

            derived.MannuallyTo(source);
            return(source);
        }
예제 #2
0
        public static MinifyAccount MapFrom(this MinifyAccount derived, Account source)
        {
            // this function is auto-generated by DerivedModel.tt
            // you can add your code in MannuallyFrom
            derived.Id   = source.Id;
            derived.Name = source.Name;

            derived.MannuallyFrom(source);
            return(derived);
        }