/// <summary> /// Initializes a new instance of the <see cref="TableStorageModel"/> class. /// </summary> public TableStorageModel(string accountName) { // Add the special table type. this.accountName = accountName; this.tableType = new EdmEntityType(this.accountName, Constants.EntitySetName); this.tableType.AddKeys(this.tableType.AddStructuralProperty(Constants.DefaultTableName, EdmPrimitiveTypeKind.String)); this.AddElement(this.tableType); // Add the default entity container - the name and namespace should not matter since we look for default entity container. TableStorageEntityContainer entityContainer = new TableStorageEntityContainer(this); this.AddElement(entityContainer); this.SetIsDefaultEntityContainer(entityContainer, true); }