private void ConfigurePessoa() { SimpleConfig config = new SimpleConfig(typeof(Pessoa), "Pessoa"); config.AddField("Id", Types.Types.INT_TYPE, true) .AddField("Nome", Types.Types.STRING_TYPE) .AddField("DataNasc", Types.Types.DATE_TIME); config.AddJoin(typeof(Item), "items", "Items", "Idpessoa", "Id"); ConfigManager.GetInstance().AddConfig(typeof(Pessoa), config); }
private void ConfigureItem() { SimpleConfig config = new SimpleConfig(typeof(Item), "items"); config.AddField("Id", new IntType(), true) .AddField("Desc", new StringType()) .AddField("preco", "valor", new DecimalType()); ConfigManager.GetInstance().AddConfig(typeof(Item), config); }
private void ConfigureItem() { SimpleConfig config = new SimpleConfig(typeof(Item), "items"); config.AddField("Id", Types.Types.INT_TYPE, true) .AddField("Desc", "Descr", Types.Types.STRING_TYPE) .AddField("Preco", "valor", Types.Types.DECIMAL_TYPE); ConfigManager.GetInstance().AddConfig(typeof(Item), config); }
private void ConfigurePessoa() { SimpleConfig config = new SimpleConfig(typeof(Pessoa), "Pessoa"); config.AddField("Id", new IntType(), true) .AddField("Nome", new StringType()) .AddField("DataNasc", new DateTimeType()); config.AddJoin(typeof(Item), "items", "Items", "pessoaId", "Id"); ConfigManager.GetInstance().AddConfig(typeof(Pessoa), config); }