1 // create some entity
2 SomeEntity se = new SomeEntity ();
3 Type objectType = se.GetType();
4 PropertyInfo[] properties = objectType.GetProperties();
5
6 //Reflection rawks!!!!!
7 foreach (PropertyInfo property in properties)
8 {
9 //you can then set the value for the given property here
10 property.SetValue(se, someValue, null);
11 )