I am trying to use EF Core with the 9.7.734 EFCore driver
My codes:
Code: Select all
[Table("Log")]
public class Log
{
public long Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; }
public long SortOrder { get; set; }
}
Code: Select all
public DbSet<Log> Logs { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder
.UseLoggerFactory(MyLoggerFactory)
.EnableSensitiveDataLogging(true)
.UseOracle(@"User Id=genshop;Password=xxx;Server=xxx;Sid=xxx;Direct=True;Persist Security Info=True");
}
Code: Select all
SELECT "x"."Id", "x"."Name", "x"."Description", "x"."IsActive", "x"."SortOrder"
FROM "Log" "x"
WHERE "x"."IsActive" = 1
Code: Select all
SELECT x.Id, x.Name, x.Description, x.IsActive, x.SortOrder
FROM Log x
WHERE x.IsActive = 1
Best regards.