src/entity.js
function(entity) {
  assert(entity.PartitionKey,   'entity is missing \'PartitionKey\'');
  assert(entity.RowKey,         'entity is missing \'RowKey\'');
  assert(entity['odata.etag'],  'entity is missing \'odata.etag\'');
  assert(entity.Version,        'entity is missing \'Version\'');

  this._partitionKey  = entity.PartitionKey;
  this._rowKey        = entity.RowKey;
  this._version       = entity.Version;
  this._properties    = this.__deserialize(entity);
  this._etag          = entity['odata.etag'];
}
function(entity) {
  assert(entity.PartitionKey,   'entity is missing \'PartitionKey\'');
  assert(entity.RowKey,         'entity is missing \'RowKey\'');
  assert(entity['odata.etag'],  'entity is missing \'odata.etag\'');
  assert(entity.Version,        'entity is missing \'Version\'');

  this._partitionKey  = entity.PartitionKey;
  this._rowKey        = entity.RowKey;
  this._version       = entity.Version;
  this._properties    = this.__deserialize(entity);
  this._etag          = entity['odata.etag'];
}
function ( entity ) { assert ( entity . PartitionKey , 'entity is missing \'PartitionKey\'' ) ; assert ( entity . RowKey , 'entity is missing \'RowKey\'' ) ; assert ( entity [ 'odata.etag' ] , 'entity is missing \'odata.etag\'' ) ; assert ( entity . Version , 'entity is missing \'Version\'' ) ; this . _partitionKey = entity . PartitionKey ; this . _rowKey = entity . RowKey ; this . _version = entity . Version ; this . _properties = this . __deserialize ( entity ) ; this . _etag = entity [ 'odata.etag' ] ; }
Base class of all entity

This constructor will wrap a raw azure-table-node entity.
Base class of all entity