Generate graphql schema based on the SQL Server 2014 database - sql-server-2014

I am in the process of developing an API using Graphql and asp.net core 2.Can anyone help me to know is there any nuget package or open source solution to generate schema based on the SQL Server 2014 database.
I see that there is a solution for java : https://github.com/leangen/graphql-spqr

You could use sql-to-graphql to generate GraphQL schemas and server based on SQL table structure. The only problem with this, is that the project is unmaintained.

Related

Insert data in MS Access 2013 through groovy

I want to insert a row in MS Access database using Groovy. I don't know what are the drivers needed and where they can be downloaded from. I am using Groovy 2.4.7 and MS Access 2013. Please tell me what has to be done clearly as I am new to Groovy. Any code would be appreciated.
TIA
You just need a JDBC driver that works with MS Access (same as if you were using Java).
One candidate (open source LGPL or Apache licensed):
http://ucanaccess.sourceforge.net/site.html
The Groovy docs provide examples of how to use SQL:
http://docs.groovy-lang.org/latest/html/api/groovy/sql/Sql.html

MySQL Data Source Entity in Visual Studio 2012

I have also encountered the problem to create a data source in VS2012 with MySQL connector, while many thanks for the connector updates from Oracle.
Than I installed the MySQL connector version 6.6.5, it looks work well while there is no directory in the "Data Source" sub-window but the Model has been created after I created the data source.
When I configuring the insert process to the data using Linq, VS2012 tells there is no such method "AddTo".
Therefore, according the things happened during my programming:
Is it common that the data source will not be shown in that sub window after I have already add the data entities?
Why there is no such method "AddTo" (Actually no any methods at all in the definition) when I using Linq with VS2012?
Many thanks in advance,
Harry

SQL Server 2008 Sharepoint list

I am trying to link a sharepoint list to another using sql server database. The ideal would be for this is to a live link so that when data in the sharepoint list is updated, the data in the sql server database is also updated. The reason that I need to do this is that I have an ASP page which will query the SQL database and display the results on a web page.
Any guidance would be much appreciated
Thanks in advance
SidJ
PS : I have done this in access before using the External Data tab ->
More -> Sharepoint List and then following the steps in the wizard, so
I know it is possible. Just not sure how to recreate this using SQL
Server as the destination for the data.
You can go BCS (Business Connectivity Services) or build something custom using a connector like http://www.bendsoft.com/net-sharepoint-connector/
Here is a small guide on BCS http://zimmergren.net/technical/sp-2010-programmatically-work-with-external-lists-bcs-in-sharepoint-2010

To use existing database on sql server2008 in visual studio 2010 mvc3

i have an existing database on local sql server 2008.
what should i do to access the database and to display the contents of that database.
i am using visual studio 2010 and i have to make a mvc3 web application for which i have to access the database.
should i have to make model classes(entity classes) or rather can these be generated from my database. please help me with this problem.
This is a very open question and any answer will depend a lot on personal preference. I would suggest that if you are using MVC3 and VS2010 you look at Entity Framaework, Microsofts ORM (Object relational mapper).
EF MVC Tutorial
You can produce a Model from the Database or Write a Domain model that mirrors the DB using Code First its up to you the tutorial linked explains how.
Alternatives would include Nhibernate, Subsonic and a bunch of other ORMs or just doing it all your self with ado connections and commands.

ado.net data service with mysql 6.2.3

I'm using .Net 3.5 SP1. Just installed ADO.Net Data Service (ADO.NET Data Services Update for .NET Framework 3.5 SP1 )
I can successfully create Entities using ADO.Net Entity Framework. I'm following this article Create OData Feed. Instead of config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); I have config.SetResourceContainerAccessRule("*", ResourceContainerRights.None);.
But the end result is I can only see <atom:title>Default</atom:title>.
Please help
Thanks in advance.
If you set the rights to None, then nobody can access anything on the service. As a result all the entity sets are hidden and that's why you see nothing in the service document.
The data service hides entity sets and types which are not accessible (behaves as if they don't exist).
You need to allow access to at least something in order to use the service.