Model.Model_Session s = new Model.Model_Session();
s.glsort = 101;
s.glsort2 = 102;
var typea = s.GetType();
foreach (var item in typea.GetProperties())
{
var value = item.GetValue(s);
}