Readonly connections with ADO.NET, SQLite and TSQL
问题 My code reads via one connection and writes via another. I dont want to accidentally write with the read connection. How can i make the connection readonly? I am using SQLite ATM and will convert sections of code to tsql when the prototype is over. 回答1: You can add Read Only=True to the read-only connection. Data Source=filename;Read Only=True; 来源: https://stackoverflow.com/questions/2004010/readonly-connections-with-ado-net-sqlite-and-tsql