本文整理汇总了C#中MetadataSource类的典型用法代码示例。如果您正苦于以下问题:C# MetadataSource类的具体用法?C# MetadataSource怎么用?C# MetadataSource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MetadataSource类属于命名空间,在下文中一共展示了MetadataSource类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetRootFolder
async void GetRootFolder (LoginOptions options)
{
tableView.Source = null;
tableView.ReloadData ();
try {
var profile = await Services.Dropbox.GetProfileAsync (options: options);
new UIAlertView ("Profile", profile.ToString (), null, "OK").Show ();
} catch (UriFormatException) {
new UIAlertView ("Specify your API keys", "Open Services.cs and specify your API keys for each provider.", null, "OK").Show ();
return;
} catch {
Console.WriteLine ("Failed to retrieve Dropbox profile. (Maybe we're logged out?)");
return;
}
DropboxManager.Metadata metadata;
try {
metadata = await Services.Dropbox.GetMetadataAsync ("/", includeContent: true, hash: null, options: options);
} catch {
Console.WriteLine ("Failed to retrieve Dropbox metadata");
return;
}
if (tableView.Source == null) {
var source = new MetadataSource (metadata.Contents) {
Controller = new WeakReference (this)
};
tableView.Source = source;
} else {
((MetadataSource)tableView.Source).Add (metadata.Contents);
}
tableView.ReloadData ();
}
示例2: MySqlDbContext
public MySqlDbContext(
string connection,
BackendConfiguration backendConfiguration,
MetadataSource metadataSource)
: base(connection, backendConfiguration, metadataSource)
{
}
示例3: WorkflowDurableInstancingDataContext
public WorkflowDurableInstancingDataContext(string connectionString, BackendConfiguration backend, MetadataSource metadataSource)
: base(connectionString, backend, metadataSource)
{
var schemaHandler = GetSchemaHandler();
string script = null;
if (schemaHandler.DatabaseExists())
{
script = schemaHandler.CreateUpdateDDLScript(null);
}
else
{
schemaHandler.CreateDatabase();
script = schemaHandler.CreateDDLScript();
}
if (!String.IsNullOrEmpty(script))
{
schemaHandler.ExecuteDDLScript(script);
}
}
示例4: EntitiesModel
public EntitiesModel(string connection, MetadataSource metadataSource)
:base(connection, backend, metadataSource)
{ }
示例5: Northwind
public Northwind(string connection, MetadataSource metadataSource)
:base(connection, backend, metadataSource)
{ }
示例6: SupermarketMySqlContext
public SupermarketMySqlContext(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
:base(connection, backendConfiguration, metadataSource)
{ }
示例7: OpenAccessMySQL
public OpenAccessMySQL(string connection, MetadataSource metadataSource)
:base(connection, backend, metadataSource)
{ }
示例8: OpenAccessMySqlSupermarketEntityModel
public OpenAccessMySqlSupermarketEntityModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
:base(connection, backendConfiguration, metadataSource)
{ }
示例9: ClinicsMySQLContext
public ClinicsMySQLContext(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
:base(connection, backendConfiguration, metadataSource)
{ }
示例10: PermissionsModel
public PermissionsModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
:base(connection, backendConfiguration, metadataSource)
{ }
示例11: SupermarketModel
public SupermarketModel(string connection, MetadataSource metadataSource)
:base(connection, backend, metadataSource)
{ }
示例12: TelerikAcademyModels
public TelerikAcademyModels(string connection, MetadataSource metadataSource)
:base(connection, backend, metadataSource)
{ }
示例13: PharmacyMySqlModel
public PharmacyMySqlModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
:base(connection, backendConfiguration, metadataSource)
{ }
示例14: SupermarketMySqlEntities
public SupermarketMySqlEntities(string connection, MetadataSource metadataSource)
:base(connection, backend, metadataSource)
{ }
示例15: ProductsDBModel
public ProductsDBModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
:base(connection, backendConfiguration, metadataSource)
{ }