Пример #1
0
 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);
 }
Пример #2
0
 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);
 }