Ejemplo n.º 1
0
        public static T NewEntity <T>()
            where T : class, IRepositoryEntity, IRepositoryCreatedEntity, new()
        {
            var entity = new T();

            entity.SetId(IM.AllocID(entity.GetTableName(), 1, -1));
            return(entity);
        }
Ejemplo n.º 2
0
 public static void PutNextId(this IMRecordset recordset, string tableNmae, string fieldName)
 {
     recordset.Put(fieldName, IM.AllocID(tableNmae, 1, -1));
 }