I am developing using .net core. The database uses Oracle. The maximum value of varchar2 is 4000 bytes, and what data type is used to store the data above this?
I created a column using clob and mapped it to .net.
Model
public string CONTENTS { get; set; }
code
try
{
var content= _mapper.Map<T_CONTENT>(post);
_dbcontext.T_CONTENT.Add(content);
_dbcontext.SaveChanges();
transaction.Commit();
return content.ID;
}
catch (Exception e)
{
transaction.Rollback();
return null;
}
public class contentDbContext : DbContext
{
public contentDbContext(DbContextOptions options) : base(options) { }
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
}
public DbSet<T_CONTENT> T_CONTENT{ get; set; }
}
When I save the data, I get the error below. error message : ORA-01460: unimplemented or unreasonable conversion requested