Mappings can be entirely created in code. Mappings can be created from scratch or mappings can be augmented by generating the mapping first.
IDataHelper db = DataHelper.SessionFactory();
Table table = new Table(typeof(Person));
table.TableName =
"People"; Field field = new Field(table, "FirstName", "FirstName");table.Fields.Add(field);
db.Mapper.ObjectMap.Add(
typeof(Person),table);
table.Fields.First(o => o.PropertyInfoString ==
"Name").DatabaseType = DbType.String;