{"id":1455,"date":"2023-05-23T21:27:13","date_gmt":"2023-05-23T13:27:13","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=1455"},"modified":"2023-05-23T21:27:13","modified_gmt":"2023-05-23T13:27:13","slug":"c%e5%ae%9e%e7%8e%b0%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%ad%a6%e7%94%9f%e5%ae%9e%e4%bd%93%e7%b1%bb%ef%bc%8c%e8%bf%9e%e6%8e%a5mysql%e6%95%b0%e6%8d%ae%e5%ba%93%ef%bc%8c%e9%85%8d%e7%bd%ae%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2023\/05\/23\/c%e5%ae%9e%e7%8e%b0%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aa%e5%ad%a6%e7%94%9f%e5%ae%9e%e4%bd%93%e7%b1%bb%ef%bc%8c%e8%bf%9e%e6%8e%a5mysql%e6%95%b0%e6%8d%ae%e5%ba%93%ef%bc%8c%e9%85%8d%e7%bd%ae%e5%ae%9e\/","title":{"rendered":"C#\u5b9e\u73b0\u521b\u5efa\u4e00\u4e2a\u5b9e\u4f53\u7c7b-\u8fde\u63a5\u6570\u636e\u5e93-\u914d\u7f6e\u5b9e\u4f53\u7c7b-\u5b9e\u73b0\u589e\u5220\u6539\u67e5\u65b9\u6cd5\u3010\u540c\u6b65\u5f02\u6b65+\u4e8b\u52a1\u3011"},"content":{"rendered":"\n<p>\u5b9e\u73b0\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>1.&nbsp;&nbsp;\u5b89\u88c5MySQL.Data\u5305<\/p>\n\n\n\n<p>\u5728Visual&nbsp;&nbsp;Studio\u7684NuGet\u5305\u7ba1\u7406\u5668\u4e2d\u641c\u7d22MySQL.Data\uff0c\u5b89\u88c5MySQL.Data\u5305\u3002<\/p>\n\n\n\n<p>2.&nbsp;&nbsp;\u521b\u5efa\u5b66\u751f\u5b9e\u4f53\u7c7b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Student\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n    public int Age { get; set; }\n    public string Gender { get; set; }\n    public string Department { get; set; }\n}\n<\/code><\/pre>\n\n\n\n<p>3.&nbsp;&nbsp;\u914d\u7f6e\u8fde\u63a5MySQL\u6570\u636e\u5e93<\/p>\n\n\n\n<p>\u5728App.config\u6587\u4ef6\u4e2d\u6dfb\u52a0MySQL\u6570\u636e\u5e93\u8fde\u63a5\u5b57\u7b26\u4e32\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;connectionStrings&gt;\n  &lt;add name=\"MySQLConnectionString\" connectionString=\"server=localhost;port=3306;user id=root;password=123456;database=mydatabase\" providerName=\"MySql.Data.MySqlClient\" \/&gt;\n&lt;\/connectionStrings&gt;\n<\/code><\/pre>\n\n\n\n<p>4.&nbsp;&nbsp;\u5b9e\u73b0\u589e\u5220\u6539\u67e5\u65b9\u6cd5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using MySql.Data.MySqlClient;\n\npublic static class DataAccess\n{\n    private static MySqlConnection GetConnection()\n    {\n        string connectionString = ConfigurationManager.ConnectionStrings&#91;\"MySQLConnectionString\"].ConnectionString;\n        MySqlConnection connection = new MySqlConnection(connectionString);\n        return connection;\n    }\n\n    public static List&lt;Student&gt; GetAllStudents()\n    {\n        List&lt;Student&gt; students = new List&lt;Student&gt;();\n\n        using (MySqlConnection connection = GetConnection())\n        {\n            connection.Open();\n            string query = \"SELECT * FROM students\";\n            using (MySqlCommand command = new MySqlCommand(query, connection))\n            {\n                using (MySqlDataReader reader = command.ExecuteReader())\n                {\n                    while (reader.Read())\n                    {\n                        Student student = new Student\n                        {\n                            Id = Convert.ToInt32(reader&#91;\"id\"]),\n                            Name = reader&#91;\"name\"].ToString(),\n                            Age = Convert.ToInt32(reader&#91;\"age\"]),\n                            Gender = reader&#91;\"gender\"].ToString(),\n                            Department = reader&#91;\"department\"].ToString()\n                        };\n                        students.Add(student);\n                    }\n                }\n            }\n        }\n\n        return students;\n    }\n\n    public static void AddStudent(Student student)\n    {\n        using (MySqlConnection connection = GetConnection())\n        {\n            connection.Open();\n            string query = \"INSERT INTO students(name, age, gender, department) VALUES(@name, @age, @gender, @department)\";\n            using (MySqlCommand command = new MySqlCommand(query, connection))\n            {\n                command.Parameters.AddWithValue(\"@name\", student.Name);\n                command.Parameters.AddWithValue(\"@age\", student.Age);\n                command.Parameters.AddWithValue(\"@gender\", student.Gender);\n                command.Parameters.AddWithValue(\"@department\", student.Department);\n                command.ExecuteNonQuery();\n            }\n        }\n    }\n\n    public static void UpdateStudent(Student student)\n    {\n        using (MySqlConnection connection = GetConnection())\n        {\n            connection.Open();\n            string query = \"UPDATE students SET name = @name, age = @age, gender = @gender, department = @department WHERE id = @id\";\n            using (MySqlCommand command = new MySqlCommand(query, connection))\n            {\n                command.Parameters.AddWithValue(\"@id\", student.Id);\n                command.Parameters.AddWithValue(\"@name\", student.Name);\n                command.Parameters.AddWithValue(\"@age\", student.Age);\n                command.Parameters.AddWithValue(\"@gender\", student.Gender);\n                command.Parameters.AddWithValue(\"@department\", student.Department);\n                command.ExecuteNonQuery();\n            }\n        }\n    }\n\n    public static void DeleteStudent(int id)\n    {\n        using (MySqlConnection connection = GetConnection())\n        {\n            connection.Open();\n            string query = \"DELETE FROM students WHERE id = @id\";\n            using (MySqlCommand command = new MySqlCommand(query, connection))\n            {\n                command.Parameters.AddWithValue(\"@id\", id);\n                command.ExecuteNonQuery();\n            }\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>5.&nbsp;&nbsp;\u6d4b\u8bd5<\/p>\n\n\n\n<p>\u6dfb\u52a0\u4e00\u4e2a\u5b66\u751f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student = new Student\n{\n    Name = \"\u5f20\u4e09\",\n    Age = 20,\n    Gender = \"\u7537\",\n    Department = \"\u4fe1\u606f\u5de5\u7a0b\u5b66\u9662\"\n};\nDataAccess.AddStudent(student);\n<\/code><\/pre>\n\n\n\n<p>\u67e5\u8be2\u6240\u6709\u5b66\u751f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>List&lt;Student&gt; students = DataAccess.GetAllStudents();\nforeach (var student in students)\n{\n    Console.WriteLine(\"{0}\\t{1}\\t{2}\\t{3}\\t{4}\", student.Id, student.Name, student.Age, student.Gender, student.Department);\n}\n<\/code><\/pre>\n\n\n\n<p>\u66f4\u65b0\u4e00\u4e2a\u5b66\u751f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int idToUpdate = 1;\nStudent student = DataAccess.GetAllStudents().FirstOrDefault(s =&gt; s.Id == idToUpdate);\nif (student != null)\n{\n    student.Name = \"\u674e\u56db\";\n    student.Age = 22;\n    student.Gender = \"\u5973\";\n    student.Department = \"\u8f6f\u4ef6\u5de5\u7a0b\u5b66\u9662\";\n    DataAccess.UpdateStudent(student);\n}\n<\/code><\/pre>\n\n\n\n<p>\u5220\u9664\u4e00\u4e2a\u5b66\u751f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int idToDelete = 2;\nDataAccess.DeleteStudent(idToDelete);\n<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\uff1a\u4ee5\u4e0a\u4ee3\u7801\u4ec5\u4ec5\u662f\u4e00\u4e2a\u7b80\u77ed\u7684\u793a\u4f8b\uff0c\u5b9e\u9645\u5e94\u7528\u4e2d\u53ef\u80fd\u9700\u8981\u66f4\u52a0\u5065\u58ee\u548c\u4e25\u8c28\u7684\u5224\u65ad\u7b49\u3002<\/p>\n\n\n\n<p>Java\u5f02\u6b65\u589e\u5220\u6539\u67e5\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.util.List;\nimport java.util.concurrent.CompletableFuture;\n\npublic interface UserServiceAsync {\n\n    CompletableFuture&lt;Void> add(User user);\n\n    CompletableFuture&lt;Void> deleteById(String id);\n\n    CompletableFuture&lt;Void> update(User user);\n\n    CompletableFuture&lt;User> findById(String id);\n\n    CompletableFuture&lt;List&lt;User>> findAll();\n}\n\npublic class UserServiceAsyncImpl implements UserServiceAsync {\n\n    private UserDao userDao;\n\n    public UserServiceAsyncImpl(UserDao userDao) {\n        this.userDao = userDao;\n    }\n\n    @Override\n    public CompletableFuture&lt;Void> add(User user) {\n        return CompletableFuture.runAsync(() -> userDao.add(user));\n    }\n\n    @Override\n    public CompletableFuture&lt;Void> deleteById(String id) {\n        return CompletableFuture.runAsync(() -> userDao.deleteById(id));\n    }\n\n    @Override\n    public CompletableFuture&lt;Void> update(User user) {\n        return CompletableFuture.runAsync(() -> userDao.update(user));\n    }\n\n    @Override\n    public CompletableFuture&lt;User> findById(String id) {\n        return CompletableFuture.supplyAsync(() -> userDao.findById(id));\n    }\n\n    @Override\n    public CompletableFuture&lt;List&lt;User>> findAll() {\n        return CompletableFuture.supplyAsync(() -> userDao.findAll());\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>Java\u540c\u6b65\u589e\u5220\u6539\u67e5\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.util.List;\n\npublic interface UserServiceSync {\n\n    void add(User user);\n\n    void deleteById(String id);\n\n    void update(User user);\n\n    User findById(String id);\n\n    List&lt;User> findAll();\n}\n\npublic class UserServiceSyncImpl implements UserServiceSync {\n\n    private UserDao userDao;\n\n    public UserServiceSyncImpl(UserDao userDao) {\n        this.userDao = userDao;\n    }\n\n    @Override\n    public void add(User user) {\n        userDao.add(user);\n    }\n\n    @Override\n    public void deleteById(String id) {\n        userDao.deleteById(id);\n    }\n\n    @Override\n    public void update(User user) {\n        userDao.update(user);\n    }\n\n    @Override\n    public User findById(String id) {\n        return userDao.findById(id);\n    }\n\n    @Override\n    public List&lt;User> findAll() {\n        return userDao.findAll();\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>C#\u5b9e\u73b0\u540c\u6b65\u589e\u5220\u6539\u67e5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System.Collections.Generic;\n\npublic class Student\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n    public int Age { get; set; }\n}\n\npublic class StudentRepository\n{\n    private List&lt;Student> students;\n\n    public StudentRepository()\n    {\n        students = new List&lt;Student>();\n    }\n\n    public void Add(Student student)\n    {\n        students.Add(student);\n    }\n\n    public void Update(int id, Student student)\n    {\n        Student oldStudent = students.Find(s => s.Id == id);\n        if (oldStudent != null)\n        {\n            oldStudent.Name = student.Name;\n            oldStudent.Age = student.Age;\n        }\n    }\n\n    public void Delete(int id)\n    {\n        Student student = students.Find(s => s.Id == id);\n        if (student != null)\n        {\n            students.Remove(student);\n        }\n    }\n\n    public Student GetById(int id)\n    {\n        return students.Find(s => s.Id == id);\n    }\n\n    public List&lt;Student> GetAll()\n    {\n        return students;\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>C#\u5b9e\u73b0\u5f02\u6b65\u589e\u5220\u6539\u67e5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System.Collections.Generic;\nusing System.Threading.Tasks;\n\npublic class Student\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n    public int Age { get; set; }\n}\n\npublic class StudentRepository\n{\n    private List&lt;Student> students;\n\n    public StudentRepository()\n    {\n        students = new List&lt;Student>();\n    }\n\n    public async Task AddAsync(Student student)\n    {\n        await Task.Run(() => students.Add(student));\n    }\n\n    public async Task UpdateAsync(int id, Student student)\n    {\n        await Task.Run(() =>\n        {\n            Student oldStudent = students.Find(s => s.Id == id);\n            if (oldStudent != null)\n            {\n                oldStudent.Name = student.Name;\n                oldStudent.Age = student.Age;\n            }\n        });\n    }\n\n    public async Task DeleteAsync(int id)\n    {\n        await Task.Run(() =>\n        {\n            Student student = students.Find(s => s.Id == id);\n            if (student != null)\n            {\n                students.Remove(student);\n            }\n        });\n    }\n\n    public async Task&lt;Student> GetByIdAsync(int id)\n    {\n        return await Task.Run(() => students.Find(s => s.Id == id));\n    }\n\n    public async Task&lt;List&lt;Student>> GetAllAsync()\n    {\n        return await Task.Run(() => students);\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>C#\u52a0\u4e0a\u4e8b\u52a1\u5b9e\u73b0\u5bf9\u4e00\u4e2a\u5b66\u751f\u7c7b\u589e\u5220\u6539\u67e5\u5f02\u6b65\u548c\u540c\u6b65<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Student\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n    public int Age { get; set; }\n}\n<\/code><\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5206\u522b\u793a\u4f8b\u5b9e\u73b0\u4e8b\u52a1\u7684\u540c\u6b65\u548c\u5f02\u6b65\u589e\u5220\u6539\u67e5\u3002\u6211\u4eec\u53ef\u4ee5\u5229\u7528ADO.NET\u6216Entity&nbsp;&nbsp;Framework\u7b49\u6846\u67b6\u6765\u64cd\u4f5c\u6570\u636e\u5e93\u8fdb\u884c\u4e8b\u52a1\u5904\u7406\u3002<\/p>\n\n\n\n<p>##&nbsp;&nbsp;\u540c\u6b65\u5b9e\u73b0<\/p>\n\n\n\n<p>###\u00a0\u00a0\u589e\u52a0\u4e00\u4e2a\u5b66\u751f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u589e\u52a0\npublic void AddStudentSync(Student student)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        connection.Open();\n        var transaction = connection.BeginTransaction();\n        try\n        {\n            var command = new SqlCommand(\"INSERT INTO Students (Name, Age) VALUES (@Name, @Age)\", connection, transaction);\n            command.Parameters.AddWithValue(\"@Name\", student.Name);\n            command.Parameters.AddWithValue(\"@Age\", student.Age);\n            command.ExecuteNonQuery();\n\n            transaction.Commit();\n        }\n        catch(Exception)\n        {\n            transaction.Rollback();\n            throw;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u5220\u9664\npublic void DeleteStudentSync(int studentId)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        connection.Open();\n        var transaction = connection.BeginTransaction();\n        try\n        {\n            var command = new SqlCommand(\"DELETE FROM Students WHERE Id = @Id\", connection, transaction);\n            command.Parameters.AddWithValue(\"@Id\", studentId);\n            command.ExecuteNonQuery();\n\n            transaction.Commit();\n        }\n        catch(Exception)\n        {\n            transaction.Rollback();\n            throw;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u4fee\u6539\npublic void UpdateStudentSync(Student student)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        connection.Open();\n        var transaction = connection.BeginTransaction();\n        try\n        {\n            var command = new SqlCommand(\"UPDATE Students SET Name = @Name, Age = @Age WHERE Id = @Id\", connection, transaction);\n            command.Parameters.AddWithValue(\"@Id\", student.Id);\n            command.Parameters.AddWithValue(\"@Name\", student.Name);\n            command.Parameters.AddWithValue(\"@Age\", student.Age);\n            command.ExecuteNonQuery();\n\n            transaction.Commit();\n        }\n        catch(Exception)\n        {\n            transaction.Rollback();\n            throw;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u67e5\u8be2\npublic Student GetStudentSync(int studentId)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        connection.Open();\n        var command = new SqlCommand(\"SELECT Id, Name, Age FROM Students WHERE Id = @Id\", connection);\n        command.Parameters.AddWithValue(\"@Id\", studentId);\n        var reader = command.ExecuteReader();\n        if(reader.Read())\n        {\n            return new Student\n            {\n                Id = reader.GetInt32(reader.GetOrdinal(\"Id\")),\n                Name = reader.GetString(reader.GetOrdinal(\"Name\")),\n                Age = reader.GetInt32(reader.GetOrdinal(\"Age\"))\n            };\n        }\n        return null;\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>##  \u5f02\u6b65\u5b9e\u73b0\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u589e\u52a0\npublic async Task AddStudentAsync(Student student)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        await connection.OpenAsync();\n        var transaction = connection.BeginTransaction();\n        try\n        {\n            var command = new SqlCommand(\"INSERT INTO Students (Name, Age) VALUES (@Name, @Age)\", connection, transaction);\n            command.Parameters.AddWithValue(\"@Name\", student.Name);\n            command.Parameters.AddWithValue(\"@Age\", student.Age);\n            await command.ExecuteNonQueryAsync();\n\n            transaction.Commit();\n        }\n        catch(Exception)\n        {\n            transaction.Rollback();\n            throw;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u5220\u9664\npublic async Task DeleteStudentAsync(int studentId)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        await connection.OpenAsync();\n        var transaction = connection.BeginTransaction();\n        try\n        {\n            var command = new SqlCommand(\"DELETE FROM Students WHERE Id = @Id\", connection, transaction);\n            command.Parameters.AddWithValue(\"@Id\", studentId);\n            await command.ExecuteNonQueryAsync();\n\n            transaction.Commit();\n        }\n        catch(Exception)\n        {\n            transaction.Rollback();\n            throw;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u4fee\u6539\npublic async Task UpdateStudentAsync(Student student)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        await connection.OpenAsync();\n        var transaction = connection.BeginTransaction();\n        try\n        {\n            var command = new SqlCommand(\"UPDATE Students SET Name = @Name, Age = @Age WHERE Id = @Id\", connection, transaction);\n            command.Parameters.AddWithValue(\"@Id\", student.Id);\n            command.Parameters.AddWithValue(\"@Name\", student.Name);\n            command.Parameters.AddWithValue(\"@Age\", student.Age);\n            await command.ExecuteNonQueryAsync();\n\n            transaction.Commit();\n        }\n        catch(Exception)\n        {\n            transaction.Rollback();\n            throw;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u67e5\u8be2\npublic async Task&lt;Student> GetStudentAsync(int studentId)\n{\n    using (var connection = new SqlConnection(connectionString))\n    {\n        await connection.OpenAsync();\n        var command = new SqlCommand(\"SELECT Id, Name, Age FROM Students WHERE Id = @Id\", connection);\n        command.Parameters.AddWithValue(\"@Id\", studentId);\n        var reader = await command.ExecuteReaderAsync();\n        if(await reader.ReadAsync())\n        {\n            return new Student\n            {\n                Id = reader.GetInt32(reader.GetOrdinal(\"Id\")),\n                Name = reader.GetString(reader.GetOrdinal(\"Name\")),\n                Age = reader.GetInt32(reader.GetOrdinal(\"Age\"))\n            };\n        }\n        return null;\n    }\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9e\u73b0\u6b65\u9aa4\u5982\u4e0b\uff1a 1.&nbsp;&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1471,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-1455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}