Ejemplo n.º 1
0
        public static T_Impeller ConvertToDB(ImpellerClass impeller)
        {
            T_Impeller t_impeller = new T_Impeller();

            t_impeller.id             = impeller.id;
            t_impeller.Name           = impeller.Name;
            t_impeller.Guid           = impeller.Guid;
            t_impeller.NumberOfBlades = impeller.NumberOfBlades;

            return(t_impeller);
        }
Ejemplo n.º 2
0
        public static ImpellerClass ConvertFromDB(T_Impeller t_impeller)
        {
            ImpellerClass impeller = new ImpellerClass();

            impeller.id             = t_impeller.id;
            impeller.Name           = t_impeller.Name;
            impeller.Guid           = t_impeller.Guid ?? new Guid();
            impeller.NumberOfBlades = t_impeller.NumberOfBlades ?? 0;

            return(impeller);
        }