Code: Select all
modelBuilder.Conventions.Remove();
Here is the code I used to get the values from your table:
Code: Select all
class Program {
static void Main(string[] args) {
OracleEntityProviderConfig config = OracleEntityProviderConfig.Instance;
config.Workarounds.IgnoreSchemaName = true;
using(var context = new OdeToTrainingCoursesDB()){
var q = context.VENUES.ToList();
}
}
}
public class OdeToTrainingCoursesDB : DbContext {
public DbSet VENUES { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder) {
modelBuilder.Conventions.Remove();
base.OnModelCreating(modelBuilder);
}
}
public class VENUES {
[Key]
public int VENUE_ID { get; set; }
public string VENUE_TYP { get; set; }
public int BASE_ORG { get; set; }
public string COUNTY { get; set; }
}
However, the current version contains an error. I have sent a working template to the e-mail address provided in your forum profile.