Whoa, that was a mouthful. :) The following steps illustrate building an
ASP.NET application with
an
ECO auto form
from a model created by wrapping the Interbase sample database EMPLOYEE.GDB.
ECO Auto forms
provide a quick way to experiment with an
ECO model from
ASP.NET.
- File | New | C# Projects | ECO ASP.NET App
- On the New ASP.NET Web App dialog set the name to be "EcoCSharpTestWebApp"
and use IIS as the web server and click Ok
- From the Project Manager open EcoPersistenceMapperProvider.cs
- Drop BdpConnection and connect to localhost:C:\Program
Files\Borland\InterBase\examples\Database\EMPLOYEE.GDB
- Drop PersistenceMapperBdp component
- Set PersistenceMapperBdp1.Connection = bdpConnection1 (from step 4 above)
- Click EcoPersistenceMapperProvider and Set
EcoPersistenceMapperProvider.PersistenceMapper = persistenceMapperBdp1
- From the Project Manager open EcoSpace.cs
- Select Project Compile (necessary to assign
persistenceMapperSharer1.MapperProviderType below)
- Set persistenceMapperSharer1.MapperProviderType =
EcoCSharpTestWebApp.EcoPersistenceMapperProvider
- Click on the EcoPersistenceMapperProvider.cs tab and set
EcoPersistenceMapperProvider.EcoSpaceType =
EcoCSharpTestWebApp.EcoCSharpTestWebAppEcoSpace
- On toolbar at the bottom of the EcoPersistenceMapperProvider click "Wrap
Existing Database with Eco"
- On the Wrap Wizard click Next
- Change the PackageName to "EMPLOYEEDB"
- Click Finish
- Select File | Save to save EcoCSharpTestWebAppOrMapping.xml" (needed in a
subsequent step below and must be saved first)
- Click EcoPersistenceMapperProvider.cs tab
- Drop a FileMapperProvider component
- Assign fileMapperProvider1.FileName = EcoCSharpTestWebAppOrMapping.xml
- Click persistenceMapperBdp1 and set
persistenceMapperBdp1.RunTimeMappingProvider = fileMappingProvider1
- Add your new package to your ecospace (Ecospace designer->Select
Packages-> add your package)
- File | New | Eco Auto Web Form
- From the Project Manager Right click WebForm2 (the new Auto form) and select
View In Browser