Question:

Can M# work with our existing (or multiple) databases?


Answer:

Yes.

For each entity you can define the data provider model. You can choose:

  1. Have M# create and manage your database tables
  2. Have M# generate the data access code to work with your existing database, without changing the schema.
  3. Write you own custom data provider (for very complex scenarios of integration)
  4. Use no database at all (in-memory only) or file-based repository

To use multiple databases you can easily configure it in your web.config file. The M# Data Access Layer allows you to define a data provider at assembly or type level. You can have a default database for your project represented by a connection string key. Then for each type or group of types in your project, you can define other connection strings referring to different databases. It's that simple to configure.