I noticed that for Metadata is required a ConnectionStrings from which breeze finds the .cdsl (I examined the source.) while for the effective database use I was able to pass a runtime context like this : (i am using DB first and objectcontext)
Public Class myController
Inherits ApiController
Implements IReadOnlySessionState
Private contextProvider As Breeze.WebApi.EFContextProvider(Of mydb.myEntities)
<AcceptVerbs("GET")> _
Public Function Metadata() As String
Return contextProvider.Metadata ' not working at run time without connectionstring
End Function
<AcceptVerbs("GET")> _
Public Function GetConfig() As IQueryable(Of mydb.MY_CONFIG)
Return contextProvider.Context.MY_CONFIG ' working at run time
End Function
I hope that in a next release they will be able to implement for the metadata the possibility to retrieve the .cdsl from the connection string of the run time context instead of using the costant in web.config.
Otherwise is not difficul to modify the source code.
Piero