当我将它打印到控制台时,我有一个如下所示的实体集:
EntitySet {entityContext: resource_dbEntities, _expression: undefined, elementType: function, person: function, createNew:function…}
_defaultType: function person(){
_expression: EntitySetExpression
collectionName: "person"
createNew: function person(){
elementType: function person(){
entityContext: resource_dbEntities
eventHandlers: undefined
name: "person"
person: function person(){
roles: undefined
stateManager: EntityStateManager
tableName: "person"
tableOptions: undefined
__proto__: EntitySet
有没有办法找出实体集中有多少元素?我不确定它是否被填充,但不确定如何检查。
像“myEntitySet.size”这样的东西?