Changeset 44 for trunk/USystem.pas
- Timestamp:
- Mar 9, 2012, 3:02:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/USystem.pas
r43 r44 316 316 Proxy.Client := Client; 317 317 Proxy.ObjectName := ObjectTable; 318 Proxy.Properties.Add('Name', Name); 319 Proxy.Properties.Add('Schema', Schema); 320 Proxy.Properties.Add('Table', TableName); 321 Proxy.Properties.Add('Group', IntToStr(GroupId)); 318 with Proxy.Properties do begin 319 Add('Name', Name); 320 Add('Schema', Schema); 321 Add('Table', TableName); 322 Add('Group', IntToStr(GroupId)); 323 Add('PrimaryKey', 'Id'); 324 end; 322 325 Proxy.Save; 323 326 Result := Proxy.Id; … … 360 363 Proxy.ObjectName := CustomTypeTableName; 361 364 Proxy.Properties.Add('Type', IntToStr(Integer(vtInteger))); 365 Proxy.Save; 362 366 CustomTypeId := Proxy.Id; 363 367 368 Proxy.Id := 0; 364 369 Proxy.ObjectName := TypeNumber; 365 370 Proxy.Properties.Clear; … … 389 394 Proxy.ObjectName := CustomTypeTableName; 390 395 Proxy.Properties.Add('Type', IntToStr(Integer(vtFloat))); 396 Proxy.Save; 391 397 CustomTypeId := Proxy.Id; 392 398 399 Proxy.Id := 0; 393 400 Proxy.ObjectName := TypeFloat; 394 401 Proxy.Properties.Clear; … … 421 428 CustomTypeId := Proxy.Id; 422 429 430 Proxy.Id := 0; 423 431 Proxy.ObjectName := TypeDateTime; 424 432 Proxy.Properties.Clear; … … 450 458 CustomTypeId := Proxy.Id; 451 459 460 Proxy.Id := 0; 452 461 Proxy.ObjectName := TypeString; 453 462 Proxy.Properties.Clear; … … 478 487 CustomTypeId := Proxy.Id; 479 488 489 Proxy.Id := 0; 480 490 Proxy.ObjectName := TypeString; 481 491 Proxy.Properties.Clear; … … 505 515 CustomTypeId := Proxy.Id; 506 516 517 Proxy.Id := 0; 507 518 Proxy.ObjectName := TypeRelationOne; 508 519 Proxy.Properties.Clear; … … 528 539 Proxy.Client := Client; 529 540 Proxy.ObjectName := CustomTypeTableName; 530 531 541 Proxy.Properties.Clear; 532 542 Proxy.Properties.Add('Type', IntToStr(Integer(vtRelationMany))); … … 534 544 CustomTypeId := Proxy.Id; 535 545 546 Proxy.Id := 0; 536 547 Proxy.ObjectName := TypeRelationMany; 537 548 Proxy.Properties.Clear; … … 590 601 Proxy.Properties.Add('Enumeration', IntToStr(Enum)); 591 602 Proxy.Properties.Add('Name', Name); 603 Proxy.Properties.Add('Sequence', '0'); 592 604 Proxy.Save; 593 605 Result := Proxy.Id;
Note:
See TracChangeset
for help on using the changeset viewer.