Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MoneyManage.Datos
- {
- public class Articulos
- {
- [SQLite.AutoIncrement, SQLite.PrimaryKey]
- public int IDArticulo { get; set; }
- [SQLite.MaxLength(200)]
- public string Nombre { get; set; }
- public double Cantidad { get; set; }
- [SQLite.MaxLength(2000)]
- public string Descripcion { get; set; }
- public double Precio { get; set; }
- //foreign key
- public Transacciones IDTransaccion { get; set; }
- }
- public class Cuentas
- {
- [SQLite.PrimaryKey]
- public int IDCuenta { get; set; }
- [SQLite.MaxLength(200)]
- public string Nombre { get; set; }
- [SQLite.MaxLength(200)]
- public string Clave { get; set; }
- //campos de la tabla Cuentas y en mi objeto dentro del objeto para trabajar con la base de //datos con LINQ
- public double creditDebt { get; set; }
- public double cash { get; set; }
- public double earn { get; set; }
- public double spent { get; set; }
- }
- public class Transacciones
- {
- [SQLite.PrimaryKey, SQLite.AutoIncrement]
- public int IDTransaccion { get; set; }
- [SQLite.MaxLength(256)]
- public string Nombre { get; set; }
- //Amount es cantidad
- [SQLite.MaxLength(256)]
- public string Amount { get; set; }
- [SQLite.MaxLength(2000)]
- public string descripcion { get; set; }
- [SQLite.MaxLength(10)]
- public string tipo { get; set; }
- //foreign key IDCuenta
- public Cuentas IDCuenta { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement