It seems I can design a class with DateTime Datatype as follows to be use in creating a table in SQlite DB:
public class Customer { [PrimaryKey, AutoIncrement] public int CustomerId { get; set; } public int CompanyID { get; set; } public DateTime Time { get; set; } public decimal Price { get; set; } }
I have the following Questions:
can use above Class for creating a table in SQLite
can insert DateTime Data into the Table?
If Not, What is the workaround? What is the best practice to handle DateTime?
Would appreciate if you can provide some code that can query the table by DateTime using LinQ or Where/Select statement.
Thanks