- Don Olliver
- SnapObjects
- Monday, 19 August 2019 06:39 PM UTC
Using PB 2019, we have migrated several datastores to a SnapDevelop .NET assembly. Looking through the various tutorials and sample projects, we do not see any examples of accessing datastore column values using object dot notation. All appear to use GetItem and SetItem for this purpose, as shown below.
intProductId = product.GetItem(0, "productid");
dataStore.SetItem(0, "name", OrderReportMonth1.GetItem(0, "subcategoryname"));
--------------
intPersonId = businessEntity.GetItem(0, "businessentityid");
person.SetItem(0, "businessentityid", intPersonId);
--------------
var productPhoto = new DataStore("d_productphoto", _context);
productPhoto.AddRow();
productPhoto.SetItem(0, "LargePhotoFileName", photoname);
productPhoto.SetItem(0, "modifieddate", DateTime.Now);
Can .NET datastore column values be accessed by some flavor of dot notation, such as
product.object.product_id[1]?
Would someone please provide a few examples of object dot notation use?
Thanks,
Don Olliver
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.