<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Breeze without EF</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Breeze without EF</description>
  <pubDate>Fri, 10 Apr 2026 20:48:18 -700</pubDate>
  <lastBuildDate>Thu, 08 Nov 2012 04:41:27 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3704</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Breeze without EF : I&amp;#039;m in the same situation,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15151#15151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1579" rel="nofollow">munissor</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 08-Nov-2012 at 4:41am<br /><br />I'm in the same situation, I'm trying to use breeze in a project where a DbContext is not there.<br><br>The approach is was following was to try to create the metadata on the client side, attaching it to the metadataStore.<br><br>However, after&nbsp; all the configuration the MetadataStore appears to be empty, and is still calling the Metadata endpoint.<br>This is the code I used for configuring an entity type.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>var breeze = root.breeze;<br>var serviceName = 'http://.../api';<br>var metadataStore = new breeze.entityModel.MetadataStore();<br><br>// create a UserEntity<br>var userEntityType = new breeze.entityModel.EntityType({<br>&nbsp;&nbsp;&nbsp; metadataStore: metadataStore,<br>&nbsp;&nbsp;&nbsp; serviceName: serviceName,<br>&nbsp;&nbsp;&nbsp; shortName: "User",<br>});<br>userEntityType.addProperty(new breeze.entityModel.DataProperty({ name: "Id", isPartOfKey:true }));<br>userEntityType.addProperty(new breeze.entityModel.DataProperty({ name: "Name" }));<br><br>breeze.core.config.setProperties({<br>&nbsp;&nbsp;&nbsp; trackingImplementation: breeze.entityModel.entityTracking_ko,<br>&nbsp;&nbsp;&nbsp; remoteAccessImplementation: breeze.entityModel.remoteAccess_webApi<br>});<br><br>// NOTE: at this point metadataStore.isEmpty() returns true<br>// but metadataStore.getEntityTypes() return the configured entity<br><br>// make the breeze manager available to the page as a property of the root object<br>root.ConfiguredEntityManager = new breeze.entityModel.EntityManager({<br>&nbsp;&nbsp;&nbsp; serviceName: serviceName,<br>&nbsp;&nbsp;&nbsp; metadataStore: metadataStore,<br>});<br></pre></td></tr></table><br><br><br><br>There is something that we are doing wrong?<br>]]>
   </description>
   <pubDate>Thu, 08 Nov 2012 04:41:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15151#15151</guid>
  </item> 
  <item>
   <title>Breeze without EF :   Try to return the following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15053#15053</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1525" rel="nofollow">pawel</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 02-Nov-2012 at 12:49am<br /><br />Try to return the following string:<div><br></div><div>{"conceptualModels":{"schema":{"xmlns":"http://schemas.microsoft.com/ado/2009/11/edm","xmlns:cg":"http://schemas.microsoft.com/ado/2006/04/codegeneration","xmlns:store":"http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator","namespace":"THE_NAMESPACE_OF_THE_DTO_CLASSES_HERE","alias":"Self","xmlns:annotation":"http://schemas.microsoft.com/ado/2009/02/edm/annotation","annotation:UseStrongSpatialTypes":"false","entityContainer":{"name":"Model1Container","annotation:LazyLoadingEnabled":"true"}}}}</div><div><br></div><div>The same as a string const (should be a single line):</div><div><br></div><div>const string emptyMeta = @"{\""conceptualModels\"":{\""schema\"":{\""xmlns\"":\""http://schemas.microsoft.com/ado/2009/11/edm\"",\""xmlns:cg\"":\""http://schemas.microsoft.com/ado/2006/04/codegeneration\"",\""xmlns:store\"":\""http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator\"",\""namespace\"":\""THE_NAMESPACE_OF_THE_DTO_CLASSES_HERE\"",\""alias\"":\""Self\"",\""xmlns:annotation\"":\""http://schemas.microsoft.com/ado/2009/02/edm/annotation\"",\""annotation:UseStrongSpatialTypes\"":\""false\"",\""entityContainer\"":{\""name\"":\""Model1Container\"",\""annotation:LazyLoadingEnabled\"":\""true\""}}}}";</div><span style="font-size:10px"><br /><br />Edited by pawel - 02-Nov-2012 at 12:57am</span>]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 00:49:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15053#15053</guid>
  </item> 
  <item>
   <title>Breeze without EF : how can i return empty metadata...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15029#15029</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1566" rel="nofollow">kaanse</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 31-Oct-2012 at 11:55am<br /><br />how can i return empty metadata when i tried to return null<div>i am getting same error</div><div>can you give a example about that&nbsp;</div><div><br></div><div>thanx for help</div>]]>
   </description>
   <pubDate>Wed, 31 Oct 2012 11:55:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15029#15029</guid>
  </item> 
  <item>
   <title>Breeze without EF : Currently, you have to return...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15027#15027</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 31-Oct-2012 at 10:33am<br /><br />Currently, you&nbsp; have to return "some" metadata, but it can be empty.&nbsp; We will change this in a later release but for now, just expose an empty EF model.]]>
   </description>
   <pubDate>Wed, 31 Oct 2012 10:33:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15027#15027</guid>
  </item> 
  <item>
   <title>Breeze without EF :  when i return i querable objectits...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15023#15023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1566" rel="nofollow">kaanse</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 31-Oct-2012 at 8:23am<br /><br />when i return i querable object&nbsp;<div>its searching metedata fist how can i fix this&nbsp;</div><div>i just want to take all data from method (getUnits)</div><div><br></div><div>-----------</div><div><div>&nbsp; &nbsp; var serviceName = '/DocIndex';</div><div>&nbsp; &nbsp; var manager = new entityModel.EntityManager(serviceName);</div></div><div>-----------</div><div><br></div><div>should i use something differnt &nbsp;instead of "DataProperty"&nbsp;</div><div><br></div><div>thanx for help</div><div><br></div><div><img src="uploads/1566/error1.JPG" height="941" width="992" border="0" /><br></div><span style="font-size:10px"><br /><br />Edited by kaanse - 31-Oct-2012 at 8:31am</span>]]>
   </description>
   <pubDate>Wed, 31 Oct 2012 08:23:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=15023#15023</guid>
  </item> 
  <item>
   <title>Breeze without EF : Actually, we do use most of what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14853#14853</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 15-Oct-2012 at 9:49am<br /><br />Actually, we do use most of what is in the EDMX conceptual model.&nbsp; But if you want to specify the metadata yourself, you can do something like this:<br><br>var fooEntityType = new breeze.entityModel.EntityType(myMetadataStore);<br>var dp1 = new breeze.entityModel.DataProperty(...);&nbsp; // take a look at the api docs for DataProperty<br>fooEntityType.appProperty(dp1); <br>var dp2 = new breeze.entityModel.NavigationProperty(...); // take a look at the api docs for NavigationProperty<br><br>Most of the metadata that you will need to define is contained in the DataProperties and NavigationProperties that make up each EntityType.<br><br>]]>
   </description>
   <pubDate>Mon, 15 Oct 2012 09:49:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14853#14853</guid>
  </item> 
  <item>
   <title>Breeze without EF : I would like to provide Metadata()!...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14848#14848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1525" rel="nofollow">pawel</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 15-Oct-2012 at 2:48am<br /><br />I would like to provide Metadata()! Just post some specification of what breeze expects. Currently I extract "ConceptualModels" this from EDMX, but I would like to know what is used and what is ignored (the string is rather long).]]>
   </description>
   <pubDate>Mon, 15 Oct 2012 02:48:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14848#14848</guid>
  </item> 
  <item>
   <title>Breeze without EF : Absolutely, this is supported....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14824#14824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 11-Oct-2012 at 11:17am<br /><br />Absolutely, this is supported.&nbsp; We simply haven't gotten around to documenting it or providing samples yet. &nbsp; There are also still some rough edges here but we should have some basic information on this topic out within the next few weeks.<br><br>For now, the simplest way to get started with this right now is to simply return an IQueryable&lt;Object&gt; from your ApiController<br><br>public class MyController : ApiController {<br><br><b>&nbsp;&nbsp;&nbsp; // We'll assume that you cannot provide this.</b><br>&nbsp;&nbsp;&nbsp; // &#091;AcceptVerbs("GET")&#093;<br>&nbsp;&nbsp;&nbsp; // public String Metadata() {<br>&nbsp;&nbsp;&nbsp; //&nbsp; return ContextProvider.Metadata();<br>&nbsp;&nbsp;&nbsp; // }<br><br>&nbsp; &#091;AcceptVerbs("GET")&#093;<br>&nbsp;&nbsp;&nbsp; public IQueryable&lt;Object&gt; MyObjects() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var stuff =this.GetMyObjects().AsQueryable();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return stuff;<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>Notice that there is no ContextProvider in this case.&nbsp; Querying for MyObject from the Breeze client then looks something like this:<br><br>&nbsp; var query = EntityQuery.from("MyObjects")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .where("City", "startsWith", "San")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .take(5)<br>&nbsp; var myEntityManager.executeQuery(query).then(...)<br><br>This assumes that the type of the instances returned by MyObjects contains a property "City".&nbsp; The Breeze server side code will still translate your client side queries into valid linq queries against the IQueryable provided on the server.&nbsp; <br><br>This query will return "plain" json objects withing the breeze promise method or callback.&nbsp; If you want these objects to be converted to "first class" breeze entities during the query process, then you will need to provide metadata for each type returned.&nbsp; This metadata is normally returned from the server but it can also be provided client side via the use of the EntityType, DataProperty and Navigation property ctors. (see the apidocs for more detail on this). <br><br>Hope this helps,<br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 11 Oct 2012 11:17:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14824#14824</guid>
  </item> 
  <item>
   <title>Breeze without EF : Can Breeze be used with WebApi,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14800#14800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1525" rel="nofollow">pawel</a><br /><strong>Subject:</strong> 3704<br /><strong>Posted:</strong> 10-Oct-2012 at 12:56am<br /><br />Can Breeze be used with WebApi, but without Entity Framework? I have different ORM framework and would like to write custom DTO (POCO + DataAnnotations) for client/server communication. If this is already possible, please help me get started.<div>If this is currently impossible, are there plans to allow such scenarios?</div>]]>
   </description>
   <pubDate>Wed, 10 Oct 2012 00:56:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3704&amp;PID=14800#14800</guid>
  </item> 
 </channel>
</rss>