Ninja Database Pro
Renaming Columns
Basic Tasks > Renaming Columns

To rename a column add a new property to your class, do a LoadAll of your data.  Set the new property to the old value.  Then delete the old property.

 

Example:

 

list<Person> persons = db.LoadAll<Person>();

 

foreach (Person person in persons)

{

person.FirstName = person.FName;

db.Save(person);

}