Pages

Sunday, April 12, 2020

Postman screen is blank or white or black

For Windows computers with certain GPU, Postman may display a blank/black window when opened, and elements in the app may not be rendering correctly or at all.

This issue may be related to a known issue where Postman doesn’t launch with certain GPU. A workaround for this issue involves disabling your GPU. Disabling GPU rendering for Postman generally allows the app to run successfully. To do so, you'll need to add a Windows environment variable: POSTMAN_DISABLE_GPU, with the value: true

Saturday, April 11, 2020

How to do migration from code to database in core web API

using EmployeeService.Model;
using Microsoft.EntityFrameworkCore;


namespace EmployeeService.Domain
{
    public class Connection:DbContext
    {

        public Connection(DbContextOptions opt):base(opt)
        {


        }

        public DbSet<Employee> Employee { get; set; }
    }
}

services.AddDbContext<Connection>(sp => sp.UseSqlServer("server=servername;database=database name;integrated security=true;USER ID= user;Password=password"));


https://www.entityframeworktutorial.net/efcore/entity-framework-core-migration.aspx