Example #1
0
 public static string GetSQLInsertForDapperInt(IStatementInsert sql) =>
 sql.GetSql() + Environment.NewLine + $"SELECT * FROM {sql.TableName} WHERE id=LAST_INSERT_ID();";
Example #2
0
 public static string GetSQLInsertForDapperGuid(IStatementInsert sql) =>
 "SET @uuid = UUID();" + Environment.NewLine + sql.GetSql() + Environment.NewLine + $"SELECT * FROM {sql.TableName} WHERE id=@uuid;";