I am developing an application with ASP.NET MVC using Visual Studio 2017 applying the Code First approach. I have three classes (tables) in the model and I am trying to create a class that simulates the BBDD.
With class DataBase I'm trying to make simulated Data Base. Is it possible to do the following?
C#
public class DataBase {C#
private static ListProveedor> proveedors= new ArrayList();C#
private static ListFactura> facturas= new ArrayList();C#
private static ListFacturadeArticulo> facturadeArticulos= new ArrayList();C#
public static getProveedor() { return proveedors; }C#
public static getFactura() {C#
return facturas; }C#
public static getFacturadeArticulo()C#
{ return facturadeArticulos; }C#
}
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Nov 8, 2018, 10:39 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 8, 2018, 5:31 PM EST