public async Task <Profil> getProfiles(int id) { var ctx = new WyrmSaveContext(); Profil profiles = await ctx.Profil.FindAsync(id); return(profiles); }
public Startup(IConfiguration configuration) { Configuration = configuration; var ctx = new WyrmSaveContext(); for (int i = 0; i <= 11; i++) { ctx.Profil.Add(new Profil() { ProfilSchemaName = $"TEST {i}" }); } ctx.SaveChanges(); }