public IObjectInfo CreateObjectInfo(Type forType)
{
if (forType == null)
{
throw new ArgumentNullException("forType");
}
var identifierStrategy = this.settings.ResolveIdentifierStrategy(forType);
var columns = this.CreateColumnInfos(forType, identifierStrategy);
var tableInfo = new TableInfo(
columns,
identifierStrategy,
this.settings.ResolveTableName(forType),
this.settings.ResolveTableSchema(forType));
if (this.log.IsDebug)
{
this.log.Debug(LogMessages.MappingConvention_MappingTypeToTable, forType.FullName, tableInfo.Schema, tableInfo.Name);
}
return new PocoObjectInfo(forType, tableInfo);
}