{"id":23061087,"url":"https://github.com/syncfusionexamples/sql-server-database-aspcore-file-provider","last_synced_at":"2025-06-13T02:05:45.697Z","repository":{"id":40471839,"uuid":"194240903","full_name":"SyncfusionExamples/sql-server-database-aspcore-file-provider","owner":"SyncfusionExamples","description":"This repository contains the SQL server database file provider in ASP.NET Core for the Syncfusion File Manager component.","archived":false,"fork":false,"pushed_at":"2025-03-21T13:12:39.000Z","size":7018,"stargazers_count":14,"open_issues_count":6,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T11:03:02.138Z","etag":null,"topics":["asp-net-core","file-provider","sql-server-database"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyncfusionExamples.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-28T08:52:28.000Z","updated_at":"2025-03-21T13:12:43.000Z","dependencies_parsed_at":"2024-02-06T10:25:17.081Z","dependency_job_id":"bc362635-15db-45a7-8e7b-b696e449ba75","html_url":"https://github.com/SyncfusionExamples/sql-server-database-aspcore-file-provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SyncfusionExamples/sql-server-database-aspcore-file-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fsql-server-database-aspcore-file-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fsql-server-database-aspcore-file-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fsql-server-database-aspcore-file-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fsql-server-database-aspcore-file-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyncfusionExamples","download_url":"https://codeload.github.com/SyncfusionExamples/sql-server-database-aspcore-file-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fsql-server-database-aspcore-file-provider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259565566,"owners_count":22877347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","file-provider","sql-server-database"],"created_at":"2024-12-16T03:16:10.494Z","updated_at":"2025-06-13T02:05:45.401Z","avatar_url":"https://github.com/SyncfusionExamples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL server database file provider for Essential JS2 File Manager\n\nThis repository contains the SQL server database file provider in ASP.NET Core for the Syncfusion File Manager component.\n\nTo know more about SQL server database file system provider for File Manager, please refer our documentation [here]\n(https://ej2.syncfusion.com/aspnetcore/documentation/file-manager/file-system-provider#sql-database-file-system-provider).\n\n## Key Features\n\nThe SQL FILESTREAM feature provides efficient storage, management, and streaming of unstructured data stored as files on the file system.\n\nThe SQL server database file provider serves the file system support for the FileManager component in SQL server database.\n\nThe following actions can be performed with the SQL server database file provider.\n\n| **Actions** | **Description** |\n| --- | --- |\n| Read      | Read the files from SQL table. |\n| Details   | Gets a file's details which consists of Type, Size, Location and Modified date. |\n| Download  | Downloads the selected file or folder from the SQL table. |\n| Upload    | Uploads a file to the SQL table. It accepts uploaded media with the following characteristics: \u003cul\u003e\u003cli\u003eMaximum file size:  30MB\u003c/li\u003e\u003cli\u003eAccepted Media MIME types: `*/*` \u003c/li\u003e\u003c/ul\u003e |\n| Create    | Creates a New folder. |\n| Delete    | Deletes a folder or file. |\n| Copy      | Copys the selected Files from target. |\n| Move      | Pastes the copied files to the desired location. |\n| Rename    | Renames a folder or file. |\n| Search    | Full-text queries perform linguistic searches against text data in full-text indexes by operating on words and phrases. |\n\n## Prerequisites\n\n* Visual Studio 2022\n\nMake the SQL server connection with SQL database file ([App_Data/FileManager.mdf](https://github.com/SyncfusionExamples/sql-server-database-aspcore-file-provider/tree/master/App_Data)) and specify the connection string in \"Web.config\" file as specified in below code example.\n\n```\n\n\u003cadd name=\"FileExplorerConnection\" connectionString=\"Data Source=(LocalDB)\\v11.0;AttachDbFilename=|DataDirectory|\\FileManager.mdf;Integrated Security=True;Trusted_Connection=true\" /\u003e\n\n```\n\nAlso need to add the entry for the connection string in the [`appsettings.json`](https://github.com/SyncfusionExamples/sql-server-database-aspcore-file-provider/blob/master/appsettings.json) file as specified in below code example.\n\n```\n\n{\n  \"ConnectionStrings\": {\n    \"FileManagerConnection\": \"Data Source=(LocalDB)\\\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\\\App_Data\\\\FileManager.mdf;Integrated Security=True;Connect Timeout=30\"\n  }\n}\n\n```\n\nTo configure the SQL server database connection use the `SetSQLConnection` method to set the connection name, table name and rootId of the table.\n\n```\n  \n  SetSQLConnection(string name, string tableName, string tableID)\n\n```\n\n## How to run the project\n\n* Checkout this project to a location in your disk.\n* Open the solution file using Visual Studio 2022.\n* Restore the NuGet packages by rebuilding the solution.\n* Run the project.\n\n## File Manager AjaxSettings\n\nTo access the basic actions such as Read, Delete, Copy, Move, Rename, Search, and Get Details of File Manager using the SQL server database file provider service, just map the following code snippet in the Ajaxsettings property of File Manager.\n\nHere, the `hostUrl` will be your locally hosted port number.\n\n```\n  var hostUrl = http://localhost:62870/;\n  ajaxSettings: {\n        url: hostUrl + 'api/SQLProvider/SQLFileOperations'\n  }\n```\n\n## File download AjaxSettings\n\nTo perform download operation, initialize the `downloadUrl` property in ajaxSettings of the File Manager component.\n\n```\n  var hostUrl = http://localhost:62870/;\n  ajaxSettings: {\n        url: hostUrl + 'api/SQLProvider/SQLFileOperations',\n        downloadUrl: hostUrl + 'api/SQLProvider/SQLDownload'\n  }\n```\n\n## File upload AjaxSettings\n\nTo perform upload operation, initialize the `uploadUrl` property in ajaxSettings of the File Manager component.\n\n```\n  var hostUrl = http://localhost:62870/;\n  ajaxSettings: {\n        url: hostUrl + 'api/SQLProvider/SQLFileOperations',\n        uploadUrl: hostUrl + 'api/SQLProvider/SQLUpload'\n  }\n```\n\n## File image preview AjaxSettings\n\nTo perform image preview support in the File Manager component, initialize the `getImageUrl` property in ajaxSettings of the File Manager component.\n\n```\n  var hostUrl = http://localhost:62870/;\n  ajaxSettings: {\n        url: hostUrl + 'api/SQLProvider/SQLFileOperations',\n         getImageUrl: hostUrl + 'api/SQLProvider/SQLGetImage'\n  }\n```\n\nThe FileManager will be rendered as the following.\n\n![File Manager](https://ej2.syncfusion.com/products/images/file-manager/readme.gif)\n\n\n## Support\n\nProduct support is available for through following mediums.\n\n* Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm\u0026utm_campaign=filemanager) support system or [Community forum](https://www.syncfusion.com/forums/essential-js2?utm_source=npm\u0026utm_campaign=filemanager).\n* New [GitHub issue](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new).\n* Ask your query in [Stack Overflow](https://stackoverflow.com/?utm_source=npm\u0026utm_campaign=filemanager) with tag `syncfusion` and `ej2`.\n\n## License\n\nCheck the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license).\n\n## Changelog\n\nCheck the changelog [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/filemanager/CHANGELOG.md)\n\nCopyright 2023 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fsql-server-database-aspcore-file-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncfusionexamples%2Fsql-server-database-aspcore-file-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fsql-server-database-aspcore-file-provider/lists"}