我正在使用Dynamic Linq助手来分组数据。我的代码如下: Employee[] empList = new Employee[6];
empList[0] = new Employee() { Name = "CA", State = "A", Department = "xyz" };
empList[1] = new Employee() { Name = "ZP", State
我想创建一个父类,可以处理基本的CRUD函数,但我无法弄清楚如何在静态方法中调用构造函数。 class Model {
static find(id) {
var attrs = someDBcalls();
var obj = new CurrentClass(attrs); // how?
return obj;
}
}
class Us