コード例 #1
0
        public async Task <Profil> getProfiles(int id)
        {
            var    ctx      = new WyrmSaveContext();
            Profil profiles = await ctx.Profil.FindAsync(id);

            return(profiles);
        }
コード例 #2
0
        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();
        }