Exemplo n.º 1
0
        static async Task Run()
        {
            var instructions = StorageBuilder.CreateFileBasedStorage(@"C:\Temp\ReBase")
                               .GetDbSet <Instruction>();

            instructions.Add(new Instruction()
            {
                Id            = 1,
                Barcode       = "XXXXXXX",
                Date_Of_Birth = new DateTime(1993, 2, 19),
                Lab_Location  = "LCA",
                Sex           = "F",
                Test          = false,
                Time_Created  = DateTime.Now,
                Time_Updated  = DateTime.Now
            });

            foreach (Instruction i in instructions)
            {
                Console.WriteLine(i.Barcode);
            }
        }