Map BO to MS Access view


Author
Message
Alex Bibiano González
Alex Bibiano González
StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)
Group: Forum Members
Posts: 31, Visits: 125
Can I mapp a BO to a MS Access view?

I have the BO, the view in the mdb, but if I call the BO Mapper tool, only tables are displayed.

Is it possible?

Thanks,

Alex B.

Reply
StrataFrame Team
S
StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)StrataFrame Developer (16K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
My question was if I could fill a datatable with more columns than properties mapped in the BO mapper.

Yes, you can.  Each business object wraps a DataTable, and that DataTable can have all sorts of extra columns containing data.  By the same token, you can also fill a business object with fewer fields than are mapped to the business object... just don't try to retrieve the data through one of the properties or you'll get an exception Smile

Once you have the extra columns in the table, there are a few ways to retrieve the values.  You can use the indexer property of the business object:

myBo["columnName"]

or you can use the current row:

myBo.CurrentRow["columnName"]

or you can create a property on the business object that wraps the current row's indexer.  Simply copy one of the properties created by the BOMapper and change the names to protect the innocent.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search