首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏码匠的流水账

    聊聊hibernate的session-level repeatable reads

    getRow( final ResultSet rs, final Loadable[] persisters, final EntityKey @Override public Object getEntityUsingInterceptor(EntityKey key) throws HibernateException { private Map<EntityKey, Object> entitiesByKey; ​ @Override public Object getEntity(EntityKey key) { return entitiesByKey.get( key ); } ​ @Override public void addEntity(EntityKey key, final LockMode lockMode, final EntityKey optionalObjectKey,

    1.2K10发布于 2019-04-24
  • 来自专栏函数式编程语言及工具

    akka-typed(9) - 业务分片、整合,谈谈lagom, 需要吗?

    (MachineId("","")) val authEntityType = Entity(Authenticator.EntityKey) { entityContext => (MachineId("","")) val crmEntityType = Entity(CrmWorker.EntityKey) { entityContext => CrmWorker (MachineId("","")) val gateEntityType = Entity(GateKeeper.EntityKey) { entityContext => (MachineId("","")) val pluEntityType = Entity(PluWorker.EntityKey) { entityContext => PluWorker (MachineId("","")) val pocEntityType = Entity(PocWorker.EntityKey) { entityContext => PocWorker

    1K20发布于 2020-08-11
  • 来自专栏GuZhenYin

    采用EntityFramework.Extended 对EF进行扩展(Entity Framework 延伸系列2)

    /记得引用 using EntityFramework.Extensions; //这两种写法都可以,Context是你的EF上下文对象. context.LogData.Delete(a => a.EntityKey == "aa"); context.LogData.Where(a => a.EntityKey == "aa").Delete(); 批量更新: //data为修改的行数 int data =context.LogData.Where (a=>a.EntityKey=="aa").Update(b=> new LogData { EntityName = "ss" }); //第二种写法,这种是针对DbSet的,已经标注过时了 var data = context.LogData.Update(a => a.EntityKey == "aa",b=> new LogData { EntityName = "ss" }); 批量增加: = us.BeginAudit(); //进行增删改操作 us.LogData.Add(new LogData() { EntityKey

    915100发布于 2018-01-04
  • 来自专栏函数式编程语言及工具

    akka-grpc - 应用案例

    (shopId, posId, termId, impurl,devId) = ids val entityRef = sharding.entityRefFor(ImgProcessor.EntityKey (shopId, posId, termId, impurl,devId) = ids val entityRef = sharding.entityRefFor(ImgProcessor.EntityKey 可以看到:服务函数实现都是通过entityRef,一个分片调度器分配到集群某个节点ImgProcessor.EntityKey类型的entity-actor上进行的。 下面是这个分片的代码示范: log.step(s"initializing sharding for ${ImgProcessor.EntityKey} ...") (MachineId("","")) val imgEntityType = Entity(ImgProcessor.EntityKey) { entityContext =>

    1.1K10发布于 2020-09-01
  • 来自专栏王磊的博客

    entity framework不查数据库修改或排除指定字段集合通用方法

    PropertyInfo item in _properties) { if ("EntityState" == item.Name || "EntityKey item in _properties) { if ("EntityState" == item.Name || "EntityKey

    98450发布于 2018-05-08
  • 来自专栏函数式编程语言及工具

    alpakka-kafka(10)-用kafka实现分布式近实时交易

    workManager分片; pathPrefix("submit") { val entityRef = sharding.entityRefFor(WorkManager.EntityKey s"TxnServices-toTxnProcessor: entityId = $entityId") val workerEntityRef = sharding.entityRefFor(TxnProcessor.EntityKey DispatcherSelector.fromConfig("prio-dispatcher") log.step(s"initializing sharding for ${TxnProcessor.EntityKey val txnProcessorType = Entity(TxnProcessor.EntityKey) { entityContext => TxnProcessor(entityContext.shard

    51220编辑于 2022-05-10
  • 来自专栏编程我也会

    U9二次开发之BE插件开发

    BusinessEntity.EntityKey key = ((UFSoft.UBF.Business.EntityEvent)args[0]).EntityKey; if (key == null)

    1.6K21编辑于 2022-12-05
  • 来自专栏函数式编程语言及工具

    akka-typed(8) - CQRS读写分离模式

    readerShard = writerInternal.optSharding.get val readerRef = readerShard.entityRefFor(POSReader.EntityKey reader-actor的定义如下: object POSReader extends LogSupport { val EntityKey: EntityTypeKey[Command] = EntityTypeKey

    57020发布于 2020-06-29
  • 来自专栏全栈程序员必看

    GridView行编辑、更新、取消、删除事件使用方法

    } public void Update(Products tmp) { //为參数对象创建实体键 EntityKey

    2.3K10编辑于 2022-07-12
  • 来自专栏跟着阿笨一起玩NET

    PropertyGrid中的枚举显示为中文

    } } return dic; } } 3、属性使用TypeConverter: public class EntityKey

    1.7K20发布于 2018-09-18
  • 来自专栏函数式编程语言及工具

    alpakka-kafka(9)-kafka在分布式运算中的应用

    CalcStock to ${entityId} with message: $jsonDoc") val entityRef = sharding.entityRefFor(StockCalculator.EntityKey

    50610编辑于 2022-05-10
  • 来自专栏函数式编程语言及工具

    akka-typed(10) - event-sourcing, CQRS实战

    ClusterSharding(writerInternal.actorContext.system) val readerRef = readerShard.entityRefFor(POSReader.EntityKey

    59030发布于 2020-08-17
  • 来自专栏DotNet NB && CloudNative

    C#性能优化杂七杂八的总结

    有些方法其循环长度在大部分情况下为1,这种写法的低效就更为明显了: public static string ToString(MetadataKey entityKey) { string str = "" ; object [] vals = entityKey.values; for ( int i = 0 ; i < vals.Length; i ++ ) { str

    67830编辑于 2023-11-14
  • 来自专栏Kitty的日常笔记

    分享一篇开发杂文

    有些方法其循环长度在大部分情况下为1,这种写法的低效就更为明显了:  public static string ToString(MetadataKey entityKey)   {   string str = "" ;   object [] vals = entityKey.values;   for ( int i = 0 ; i < vals.Length; i ++ )   {  str

    1.1K10发布于 2020-06-19
  • 来自专栏前端Q

    「可视化搭建系统」——从设计到架构,探索前端领域技术和业务价值

    编辑状态 2 基于 FocusPlugin 插件,以修改当前 Sku 卡片 id 为例,id 进行修改后,发送获取新的 id 的数据,并在数据成功获取后调用 modifyAtomicBlock(entityKey , data) 方法,触发 replaceEntityData(editorState, entityKey, data) 方法进行编辑器不可变数据的更新,并由 handleEditorStateChange

    2.3K30发布于 2020-08-24
  • 来自专栏python3

    k3cloud开发实例

    AddValidatorsEventArgs e) { base.OnAddValidators(e); SaveValidator saveValidator =new SaveValidator(); saveValidator.EntityKey

    5.2K12发布于 2020-01-07
领券