Hello All,
Kindly Help Me on this , I have created the crud application
for listing Data in crud i need to pass the value from stored procedure.
I have creatred a Db context class in that ihave created a data set but i am getting error as MySql.Data.MySqlClient.MySqlStream.ReadPacket()
<div class="titleerror">MySqlException: Table 'ncsdb.getcompanyprofiles' doesn't exist</div>this my code for dbcontext
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using MySql.Data.MySqlClient; using TESTAPPDBContext.Models; using Type = Google.Protobuf.WellKnownTypes.Type; namespace TESTAPPDBContext.Data { public class NcsdbbContext : DbContext { public NcsdbbContext(DbContextOptions<NcsdbbContext> options) : base(options) { } public DbSet<CompanyProfile> GetCompanyprofiles { get; set; } } }
I have stored procedure called SP_Test.
how i can call this stored procedure so that i could get the data in crud listing.