Esempio n. 1
0
 public static Class1 Casting(@class t)
 {
     common.Class1 c = new Class1()
     {
         CodeClass = t.codeClass,
         Name      = t.name
     };
     return(c);
 }
        public static void Add(Class1 t)
        {
            @class clss = Mapper.Casting(t);

            using (sqlEntities sqlEntities = new sqlEntities())
            {
                [email protected](clss);
                sqlEntities.SaveChanges();
            }
        }
Esempio n. 3
0
        public static @class Casting(common.Class1 t)
        {
            @class @class = new @class()
            {
                codeClass = t.CodeClass,
                name      = t.Name
            };

            return(@class);
        }