message: Entity.iModel is now an IModel (previously IModelDb which is backend only)
diff: /*---------------------------------------------------------------------------------------------
  | $Copyright: (c) 2017 Bentley Systems, Incorporated. All rights reserved. $
  *--------------------------------------------------------------------------------------------*/
  -
  -import { Schema } from "./Schema";
  -import { IModelDb } from "./backend/IModelDb";
  import { Id64 } from "@bentley/bentleyjs-core/lib/Id";
  import { Point3d, Point2d } from "@bentley/geometry-core/lib/PointVector";
  import { ClassRegistry } from "./ClassRegistry";
  +import { IModel } from "./IModel";
  +import { Schema } from "./Schema";
  /** The primitive types of an Entity property. */
  export const enum PrimitiveTypeCode {
  @@ -22,9 +21,9 @@ export const enum PrimitiveTypeCode {
  String = 0x901,
  }
  -/** The properties to create an Entity. Every Entity must have an iModel and the full name of the class that defines it. */
  +/** The properties to create an Entity. Every Entity must have an [[IModel]] and the full name of the class that defines it. */
  export interface EntityProps {
  - iModel: IModelDb;
  + iModel: IModel;
  classFullName?: string;
  [propName: string]: any;
  }
  @@ -50,7 +49,7 @@ export class Entity implements EntityProps {
  public static schema: Schema;
  /** The IModel that contains this Entity */
  - public iModel: IModelDb;
  + public iModel: IModel;
  /** The Id of this Entity. Valid only if persistent. */
  public id: Id64;
  @@ -216,15 +215,15 @@ export class EntityMetaData {
  }
  /** Invoke a callback on each property of the specified class, optionally including superclass properties.
  - * @param imodel The IModel that contains the schema
  + * @param iModel The IModel that contains the schema
  * @param schemaName The schema that defines the class
  * @param className The name of the class
  * @param wantSuper If true, superclass properties will also be processed
  * @param func The callback to be invoked on each property
  * @param includeCustom If true, include custom-handled properties in the iteration. Otherwise, skip custom-handled properties.
  */
  - public static forEach(imodel: IModelDb, classFullName: string, wantSuper: boolean, func: PropertyCallback, includeCustom: boolean) {
  - const meta = imodel.classMetaDataRegistry.find(classFullName);
  + public static forEach(iModel: IModel, classFullName: string, wantSuper: boolean, func: PropertyCallback, includeCustom: boolean) {
  + const meta = iModel.classMetaDataRegistry.find(classFullName);
  if (meta === undefined) {
  throw ClassRegistry.makeMetaDataNotFoundError();
  }
  @@ -238,7 +237,7 @@ export class EntityMetaData {
  }
  if (wantSuper && meta.baseClasses && meta.baseClasses.length > 0) {
  - EntityMetaData.forEach(imodel, meta.baseClasses[0], true, func, includeCustom);
  + EntityMetaData.forEach(iModel, meta.baseClasses[0], true, func, includeCustom);
  }
  }
  }
  