private static void PopulateEFTableAttribute(Type type, EntityMapping mapping, object att)
{
if (EFDataAnnotiationAdapter.Instance == null)
{
EFDataAnnotiationAdapter.Init(att.GetType().Assembly);
}
var tableName = EFDataAnnotiationAdapter.Instance.Table.Name(att) as string;
var schemaName = EFDataAnnotiationAdapter.Instance.Table.Schema(att) as string;
PopulateTableName(mapping, tableName, type.Name);
if (schemaName.HasValue())
{
mapping.schema = schemaName;
}
}