public class User { //使用省缺参数,一般不需要再为多态做各种静态重载了 public User( string name = "anonym", string type = "user" ) { this.UserName = name; this.UserType = type; } public UserName { private set; get; } public UserType { private set; get; } } Us
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Reflection; using System.Web; using WebSite.Models; namespace testWebuploader.Scripts.Plugin.webuploader_v0._1._2 { /// <summary> /
public async Task<IEnumerable<QuestionAllInfo>> GetAllQuestionByTypeIdAsync(int id) { string sql = "SELECT q.Id as questionId,i.Id as instanceId,q.name as questionName,q.Intention as questionIntention,i.`Name` as instancesName FROM `t_que