Rana
Rana
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
@Pobiega i dont understand
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
@sn0wgirl_97 .
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
@sn0wgirl_97 true ?
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
namespace Test150000.DB
{
public class USERINFOTEST
{

[Key]
public string USER_ID { get; set; }

public DateTime TIMESTAMP { get; set; }

public int STATUS { get; set; }

public int PUNCH { get; set; }
}
}
namespace Test150000.DB
{
public class USERINFOTEST
{

[Key]
public string USER_ID { get; set; }

public DateTime TIMESTAMP { get; set; }

public int STATUS { get; set; }

public int PUNCH { get; set; }
}
}
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
@sn0wgirl_97
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
namespace Test150000.DB
{
public class DemoDBContext :DbContext
{
public DemoDBContext(DbContextOptions<DemoDBContext> options):base(options) {
}
public DbSet<USERINFOTEST> USERINFOTESTs { get; set; }

}
}
namespace Test150000.DB
{
public class DemoDBContext :DbContext
{
public DemoDBContext(DbContextOptions<DemoDBContext> options):base(options) {
}
public DbSet<USERINFOTEST> USERINFOTESTs { get; set; }

}
}
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
.
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
private DemoDBContext _dbContext;

public DataController(DemoDBContext dbContext)
{
_dbContext = dbContext;
}

[HttpGet("GetData")]
public IActionResult Get()
{
try
{

var datas = _dbContext.USERINFOTESTs.ToList();
if (datas.Count == 0)
{
return NotFound();
}
return Ok(datas);
}
catch (Exception ex)
{
return StatusCode(500, ex.Message);
}
private DemoDBContext _dbContext;

public DataController(DemoDBContext dbContext)
{
_dbContext = dbContext;
}

[HttpGet("GetData")]
public IActionResult Get()
{
try
{

var datas = _dbContext.USERINFOTESTs.ToList();
if (datas.Count == 0)
{
return NotFound();
}
return Ok(datas);
}
catch (Exception ex)
{
return StatusCode(500, ex.Message);
}
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
19 replies
CC#
Created by Rana on 3/13/2023 in #help
❔ Get Data from Table api c#
19 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
i want show the data of table in api
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
and i have table
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
my db is created
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
thank you bro ❤️
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
ORA-00942: table or view does not exist
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
but new error
132 replies
CC#
Created by Rana on 3/13/2023 in #help
error install Package
it's solved
132 replies