Best Practices for uploading files to database

前端 未结 4 541
暖寄归人
暖寄归人 2020-12-03 16:19

I am looking for any best practices or ideas on how you would create an interface with a DB from a .NET web application to upload data from Excel files Should I use a mechan

4条回答
  •  借酒劲吻你
    2020-12-03 16:45

    If data integrity in your DB is important, do not allow data to be imported that has errors or does not meet the validation requirements of your DB.

    Since these are Excel files, it should be easy enough for the user to correct the data in the Excel file, instead of trying to use another interface to fix the data. Just make sure the error messages direct the user to what field is the problem and clearly explain what is wrong.

提交回复
热议问题