示例#1
0
 public string EntityToInsertSql <T>(T entity) where T : class
 {
     if (CurrentConnection != null)
     {
         return(CurrentConnection.EntityToInsertSql(entity));
     }
     else
     {
         using var connection = GetDbConnection(DataSourceEnum.MASTER);
         return(connection.EntityToInsertSql(entity));
     }
 }