摘要:
C# Code public class TestClass{ private static string Str = string.Empty; public TestClass() { if (string.IsNullOrEmpty(Str)) { Str = "TestStr"; } } p 阅读全文
摘要:
首先随便写一个实体类 public class Student { public string Name { get; set; } } 然后添加两个action public ActionResult InsertStudent() { return View(new Student()); } 阅读全文