Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class temperature
- {
- private WeatherContext context;
- public temperature(WeatherContext cont)
- {
- context = cont;
- }
- public List<temperature> GetAll()
- {
- return context.temperature.ToList();
- }
- public List<temperature> GetByID (int id)
- {
- var tem = context.temperature.Where(t => t.ID == id).ToList<temperature>();
- return tem;
- }
- //--
- public class ConnectionClass
- {
- private WeatherContext Context;
- internal temperature tmp;
- public ConnectionClass()
- {
- context = new WeatherContext();
- tmp = new temperature(Context);
- }
- //--
- public partial class MainWindow : Window
- {
- private ConnectionClass cc = new ConnectionClass();
- private WeatherContext context;
- public MainWindow()
- {
- InitializeComponent();
- }
- //--
- public class LineChart
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement