Beispiel #1
0
        static void Main(string[] args)
        {
            ApplicationKernel kernel = new ApplicationKernel(new TestModule());

            {
                SmsCrud crud = new SmsCrud(kernel);

                crud.Add(new Sms());
                List<Sms> a = crud.GetAll<Sms>();
            }
            {
                SmsCrud crud = new SmsCrud(kernel);

                crud.Add(new Sms());
                List<Sms> a = crud.GetAll<Sms>();
            }

            {
                SmsCrud2 crud = new SmsCrud2(kernel);

                crud.Add(new Sms());
                List<Sms> a = crud.GetAll<Sms>();
            }

            //DbLogger<LogMessage> logger = new DbLogger<LogMessage>(new SqliteMemoryDao(Assembly.GetExecutingAssembly()));

            //logger.Write(new LogMessage() { Message = "Test" });

            //Thread.Sleep(TimeSpan.FromSeconds(60));
        }
Beispiel #2
0
 public SmsCrud(ApplicationKernel kernel)
     : base(kernel)
 {
 }