Skip to content

Instantly share code, notes, and snippets.

@cmatskas
Created January 28, 2018 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmatskas/00f00bc701ab04a47fbb02274c1b2750 to your computer and use it in GitHub Desktop.
Save cmatskas/00f00bc701ab04a47fbb02274c1b2750 to your computer and use it in GitHub Desktop.
Azure Search Blob Data Source with Soft Delete
private static DataSource CreateBlobDataSource()
{
DataSource datasource = DataSource.AzureBlobStorage(
name: "azure-blob",
storageConnectionString: AzureBlobConnectionString,
containerName: "search-data");
datasource.DataDeletionDetectionPolicy = new SoftDeleteColumnDeletionDetectionPolicy("IsDeleted", true);
return datasource;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment