2
Vote

Better error message when no EntityDatabaseMapping attribute is set for an entity type that uses BasicEntityProvider

description

Today a null reference exception is thrown by public static string GetStoreProcedure(DatabaseMappingType spType, Type type) in DataItemHelper when an entity that uses the BasicEntityProvider is saved without having it's DatabaseMappingAttribute set. The exception is caught in the Save(IEntity entity) method in BasicEntityProvider where it gets thrown again. The error message should be more informative.

comments