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