python manage.py shell 的增删改查 guoguo-MacBook-Pro:myblog guoguo$ python manage.py shell Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44) Type 'copyright', 'credits' or 'license' for more information IPython 6.2.1 -- An enhanced Interactive Pyth…
连接数据库代码: private SqlConnection con = null; public void OpenConnection(string connectionString) { con = new SqlConnection(); con.ConnectionString = connectionString; con.Open(); } public void CloseConnection() { con.Close(); } 添加代码(增) public void Inse…