...
Code Block | ||
---|---|---|
| ||
var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); var list = table.ToDictionary('Name'); var myGroup = list.Ensure("MyGroup", { Name : 'MyGroup', Code : '123' }, { Id : Script.NewId() }); list.Save(); |