static void Main(String[] n) { GeneralStore g = new GeneralStore("Ram"); GeneralStore g1 = new GeneralStore(23.23); Console.WriteLine(g.Data); g.Data = 12; Console.WriteLine(g.Data); GenericStore<string> gs = new GenericStore<string>("Ram"); GenericStore<int> gs1 = new GenericStore<int>(123); gs.Data = 123; gs.setData("Ramu"); Console.ReadKey(); }
/// <summary> /// Create new instance of the <see cref="GenericStore{TEntityKey, TEntity}"/> class. /// </summary> /// <param name="store"></param> public GenericEditController(GenericStore <TEntityKey, TEntity> store) { this.Store = store; }
public IActionResult GetTask() { var test = GenericStore.ReadAll <Modality>(); return(new OkObjectResult(test)); }
public OrderStore(ApiDbContext context) : base(context) { _itemStore = new GenericStore <OrderItem>(context); }