-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cs
More file actions
29 lines (24 loc) · 811 Bytes
/
Copy pathtest.cs
File metadata and controls
29 lines (24 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using Neptune.Models;
using Neptune.Data;
using Microsoft.EntityFrameworkCore;
using System.Linq;
namespace Neptune
{
public class test
{
public test()
{
DatabaseDbContext context = new DatabaseDbContext();
Script s;
var x = context.scripts.Where(m => m.Id == 2).FirstOrDefault();
var z = context.scriptParameter.Where(m => m.script.Id == 2 && m.implemented == true).Include(m => m.parameter).ToList();
var t = context.scriptParameter.Where(m => m.script.Id == 2 && m.implemented == true).Select(m => m.parameter).ToList();
//var x = context.scripts.Where(m => m.Id == 1)
foreach (var y in t)
{
Console.WriteLine(y.title);
}
}
}
}