public void Insert(T obj)
        {
            var databaseB2b = new it.itryframework2.data.DBMapper();

            it.itryframework2.interfaces.IGenericObject GenObj = obj;
            databaseB2b.insert(GenObj);
        }
        public void Update(int id, T obj)
        {
            var databaseB2b = new it.itryframework2.data.DBMapper();

            //Valorizza la primary key dell'oggetto con reflection
            Type         myType = obj.GetType();
            PropertyInfo pinfo  = myType.GetProperty(obj.PrimaryKey);

            pinfo.SetValue(obj, id, null);

            it.itryframework2.interfaces.IGenericObject GenObj = obj;

            databaseB2b.update(GenObj);
        }