protected DatastoreRepository(string projectId)
        {
            if (_kindKeyInfo == null)
            {
                LoadKindInfo();
            }

            _db = DatastoreDb.Create(projectId);

            if (_typesMetadataLoader == null)
            {
                _typesMetadataLoader = new TypesMetadataLoader(typeof(TEntity));
            }
        }
示例#2
0
 protected DatastoreRepository(string projectId)
 {
     LoadKindInfo();
     _db = DatastoreDb.Create(projectId);
     _typesMetadataLoader = new TypesMetadataLoader(typeof(TEntity));
 }