Yes this method is protected.
// I'm using a partial class, but you can create an inherited class
public partial class DataAccessAdapter
{
public string GetSourceColumnName(IEntityField2 field)
{
// access the protected method to retrieve the field's info
IFieldPersistenceInfo fieldInfo = GetFieldPersistenceInfo(field);
// return the name of the source column
return fieldInfo.SourceColumnName;
}
}
You should expose it by either wrappng it with another method as shown in the above example, or by inheriting from the DataAccessAdapter.