Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public constructor(data: T) {
  2.  
  3. _.assign(this, _.omit(data, [
  4. "table",
  5. "id",
  6. "PartitionKey",
  7. "RowKey",
  8. ]));
  9. }
  10.  
  11. export abstract class Base<T extends EntityData> implements Storage.AbstractEntity & T {
  12. ...
  13.  
  14. export class AuthorFact extends Base<Author> {
  15.  
  16. public get RowKey() { return (this as any).id }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement