开发者

ORM for GSQL, LINQ 2 GSQL?

开发者 https://www.devze.com 2022-12-13 05:20 出处:网络
is there LINQ 2 GSQL imp开发者_运维问答lementation ? Note : GSQL is the query language (SQL subset) used in Google AppEngine datastoreThe language is called \'GQL\', not \'GSQL\', and such an ORM isn

is there LINQ 2 GSQL imp开发者_运维问答lementation ?

Note : GSQL is the query language (SQL subset) used in Google AppEngine datastore


The language is called 'GQL', not 'GSQL', and such an ORM isn't really possible - .net applications do not run on App Engine.


Well, you obviously can't use Microsoft's LINQ on App Engine, but there are of course other systems for object-relational mapping.

In fact, App Engine's db.Model has a lot of the features of an ORM (although internally the database isn't relational, so the 'R' in ORM doesn't quite work): data is retrieved from the datastore as objects of a particular class, and you can access the "columns" just like properties. As in Linq-to-SQL, you define the data model by creating a language-native class with members, not by writing datastore queries.

So I would say you can have an "ORM" of sorts on App Engine: in fact, it's the default way to use the datastore.

0

精彩评论

暂无评论...
验证码 换一张
取 消