当前位置: 首页>>代码示例>>C#>>正文


C# MetadataSource类代码示例

本文整理汇总了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 ();
        }
开发者ID:juancampa,项目名称:Stampsy.Social,代码行数:35,代码来源:DropboxViewController.cs

示例2: MySqlDbContext

 public MySqlDbContext(
     string connection,
     BackendConfiguration backendConfiguration,
     MetadataSource metadataSource)
     : base(connection, backendConfiguration, metadataSource)
 {
 }
开发者ID:Team-Tower-Databases-Online,项目名称:Databases-Teamwork-2015,代码行数:7,代码来源:EntitiesModel.cs

示例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);
     }
 }
开发者ID:jhuntsman,项目名称:EasyNetQ.Wf,代码行数:19,代码来源:WorkflowDurableInstancingDataContext.cs

示例4: EntitiesModel

		public EntitiesModel(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
开发者ID:Jarolim,项目名称:AllMyHomeworkForTelerikAcademy,代码行数:3,代码来源:EntitiesModel.cs

示例5: Northwind

		public Northwind(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
开发者ID:slieser,项目名称:sandbox,代码行数:3,代码来源:Northwind.cs

示例6: SupermarketMySqlContext

		public SupermarketMySqlContext(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
开发者ID:polinaak,项目名称:Polina-Telerik-Academy,代码行数:3,代码来源:EntitiesModel.cs

示例7: OpenAccessMySQL

		public OpenAccessMySQL(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
开发者ID:kaloyan-gospodinov,项目名称:ParadiseSuperMarket,代码行数:3,代码来源:EntitiesModel.cs

示例8: OpenAccessMySqlSupermarketEntityModel

		public OpenAccessMySqlSupermarketEntityModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
开发者ID:TeamMojito,项目名称:SupermarketsDatabaseClient,代码行数:3,代码来源:EntitiesModel.cs

示例9: ClinicsMySQLContext

		public ClinicsMySQLContext(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
开发者ID:TishoAngelov,项目名称:TelerikAcademy,代码行数:3,代码来源:EntitiesModel.cs

示例10: PermissionsModel

		public PermissionsModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
开发者ID:dongarnica,项目名称:data-access-samples,代码行数:3,代码来源:PermissionsModel.cs

示例11: SupermarketModel

		public SupermarketModel(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
开发者ID:aleks-todorov,项目名称:HomeWorks,代码行数:3,代码来源:Supermarket.Model.cs

示例12: TelerikAcademyModels

		public TelerikAcademyModels(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
开发者ID:vladislav-karamfilov,项目名称:TelerikAcademy,代码行数:3,代码来源:TelerikAcademyModel.cs

示例13: PharmacyMySqlModel

        public PharmacyMySqlModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
开发者ID:TanyaRan,项目名称:Pharmacy,代码行数:3,代码来源:PharmacyMySqlModel.cs

示例14: SupermarketMySqlEntities

		public SupermarketMySqlEntities(string connection, MetadataSource metadataSource)
			:base(connection, backend, metadataSource)
		{ }
开发者ID:bahtev,项目名称:TelerikAcademy,代码行数:3,代码来源:EntitiesModel.cs

示例15: ProductsDBModel

		public ProductsDBModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
			:base(connection, backendConfiguration, metadataSource)
		{ }
开发者ID:RamiAmaire,项目名称:TelerikAcademy,代码行数:3,代码来源:EntitiesModel.cs


注:本文中的MetadataSource类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。