[{"data":1,"prerenderedAt":194},["ShallowReactive",2],{"article-visual-studio-emulator-for-android":3},{"article":4,"tags":60,"previous":75,"next":114},{"id":5,"title":6,"author":7,"body":8,"createdAt":49,"description":50,"extension":51,"img":23,"meta":52,"navigation":53,"path":54,"seo":55,"stem":56,"tags":57,"updatedAt":49,"__hash__":59},"articles\u002Farticles\u002Fvisual-studio-emulator-for-android.md","Visual Studio Emulator for Android","[object Object]",{"type":9,"value":10,"toc":45},"minimark",[11,15,28],[12,13,14],"p",{},"“The Emulator is unable to connect to the device operating system”",[16,17,19],"a",{"href":18},"\u002Farticles\u002Fimages\u002Fopen-live-writer-visual-studio-emulator-for-android_e589-image_2.png",[20,21],"img",{"style":22,"src":23,"border":24,"alt":25,"title":25,"width":26,"height":27},"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;","\u002Farticles\u002Fimages\u002Fopen-live-writer-visual-studio-emulator-for-android_e589-image_thumb.png",0,"image",240,157,[12,29,30,31,34,35,37],{},"The resolution was to ensure the Network Connection – Adapter “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)” was enabled.",[32,33],"br",{},"\n ",[32,36],{},[16,38,40],{"href":39},"\u002Farticles\u002Fimages\u002Fopen-live-writer-visual-studio-emulator-for-android_e589-image_6.png",[20,41],{"style":22,"src":42,"border":24,"alt":25,"title":25,"width":43,"height":44},"\u002Farticles\u002Fimages\u002Fopen-live-writer-visual-studio-emulator-for-android_e589-image_thumb_2.png",379,51,{"title":46,"searchDepth":47,"depth":47,"links":48},"",2,[],"2017-01-27T09:23:01.2100000-05:00",null,"md",{},true,"\u002Farticles\u002Fvisual-studio-emulator-for-android",{"title":6,"description":50},"articles\u002Fvisual-studio-emulator-for-android",[58],"xamarin","LB6Mk4yGa0Ok9lrQNHDt5QnMwYy2Z0eiAeaCriVxOAM",[61],{"id":62,"title":63,"body":64,"description":68,"extension":51,"img":69,"meta":70,"name":58,"navigation":53,"path":71,"seo":72,"stem":73,"__hash__":74},"tags\u002Ftags\u002Fxamarin.md","Xamarin",{"type":9,"value":65,"toc":66},[],{"title":46,"searchDepth":47,"depth":47,"links":67},[],"Xamarin is an open-source platform for building modern and performant applications for iOS, Android, and Windows with . NET. Xamarin is an abstraction layer that manages communication of shared code with underlying platform code.","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fxamarin",{"description":68},"tags\u002Fxamarin","deVB66I7cJMtWvqybFh5POf9LBCBwHNe-5ZGMOzV5G4",{"id":76,"title":77,"author":7,"body":78,"createdAt":107,"description":50,"extension":51,"img":101,"meta":108,"navigation":53,"path":109,"seo":110,"stem":111,"tags":112,"updatedAt":107,"__hash__":113},"articles\u002Farticles\u002Fbuild-action-embeddedresource.md","Build action 'EmbeddedResource'",{"type":9,"value":79,"toc":105},[80,83,86,89],[12,81,82],{},"If you have seen the following the following build errors within Xamarin Forms application…",[12,84,85],{},"“Build action 'EmbeddedResource' is not supported by one or more of the project's targets.”",[12,87,88],{},"The resolution is to open the properties on the xaml file, change the build action to something else other than Embedded Resource then change it back. ",[12,90,91,92,34,94,96],{},"The build error goes away and everything is good.  The error however does not stop building\u002Frunning the solution however it can be avoided to.",[32,93],{},[32,95],{},[16,97,99],{"href":98},"\u002Farticles\u002Fimages\u002Fopen-live-writer-build-action-embeddedresource_8fb4-xam_2.png",[20,100],{"style":22,"src":101,"border":24,"alt":102,"title":102,"width":103,"height":104},"\u002Farticles\u002Fimages\u002Fopen-live-writer-build-action-embeddedresource_8fb4-xam_thumb.png","xam",132,121,{"title":46,"searchDepth":47,"depth":47,"links":106},[],"2017-02-03T03:16:12.9500000-05:00",{},"\u002Farticles\u002Fbuild-action-embeddedresource",{"title":77,"description":50},"articles\u002Fbuild-action-embeddedresource",[58],"wt8tNrcjYv7LyIwiCgmGm9SubVJWPaRsHMKv_TYDmjU",{"id":115,"title":116,"author":7,"body":117,"createdAt":185,"description":186,"extension":51,"img":176,"meta":187,"navigation":53,"path":188,"seo":189,"stem":190,"tags":191,"updatedAt":185,"__hash__":193},"articles\u002Farticles\u002Fentity-framework-and-primary-keys.md","Entity Framework and Primary Keys",{"type":9,"value":118,"toc":183},[119,122,128,162,165,179],[12,120,121],{},"Entity Framework relies on primary keys with views and tables.  If you are trying to bring a view into dbContext, and the view does not have a primary key the following should help you out.  The schema object has to have primary key defined and it be set to not allow nulls (not-null).",[12,123,124,125,127],{},"The solution for me was to refashion my view definition using RowId like the following",[32,126],{},"\nThis will create a non-null RowId for each row in the result.",[129,130,134],"pre",{"className":131,"code":132,"language":133,"meta":46,"style":46},"language-sql shiki shiki-themes github-light github-dark","SELECT ISNULL(ROW_NUMBER() OVER(ORDER BY P1), -1) \nAS RowID, P1 AS Code, P3, P2\nFROM dbo.BigTable \nWHERE P1 IS NOT NULL\n","sql",[135,136,137,145,150,156],"code",{"__ignoreMap":46},[138,139,142],"span",{"class":140,"line":141},"line",1,[138,143,144],{},"SELECT ISNULL(ROW_NUMBER() OVER(ORDER BY P1), -1) \n",[138,146,147],{"class":140,"line":47},[138,148,149],{},"AS RowID, P1 AS Code, P3, P2\n",[138,151,153],{"class":140,"line":152},3,[138,154,155],{},"FROM dbo.BigTable \n",[138,157,159],{"class":140,"line":158},4,[138,160,161],{},"WHERE P1 IS NOT NULL\n",[12,163,164],{},"After you create the view take a look at the view definition within SQL Server Management Studio.  You should see that you have defined a column RowId which is non-null. ",[12,166,167,168,170],{},"This will satisfy Entity Framework and dbContext can now include a reference to these views or tables.",[32,169],{},[16,171,174],{"style":172,"href":173},"display: none;","\u002Farticles\u002Fimages\u002Fopen-live-writer-entity-framework-and-primary-keys_eb29-ef_2.png",[20,175],{"style":22,"src":176,"border":24,"alt":177,"title":177,"width":26,"height":178},"\u002Farticles\u002Fimages\u002Fopen-live-writer-entity-framework-and-primary-keys_eb29-ef_thumb.png","ef",154,[180,181,182],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":46,"searchDepth":47,"depth":47,"links":184},[],"2017-01-18T09:49:20.3800000-05:00","Entity Framework relies on primary keys with views and tables...",{},"\u002Farticles\u002Fentity-framework-and-primary-keys",{"title":116,"description":186},"articles\u002Fentity-framework-and-primary-keys",[192],"entityframework","LlkG54x3JZij2W3gLKsdJshQfKO6dv1t6tzMvSrv9wQ",1781574770748]