问题标签 [conform]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
nhibernate - Linq to Nhibernate 奇怪的行为
我有一个表格填充查询,它必须获取所有引用实体。
我有客户:
地址
和DB图:
我想通过 Linq 获取所有用户地址到 Nhibernate:
但我得到了这个查询:
编辑我的存储库:
查询id = address2_.Id
不是按客户端 ID 过滤的。
为什么按地址 ID 而非客户端显示搜索?
nhibernate - 抓取是如何工作的
我读过文章。 http://fabiomaulo.blogspot.com/2010/03/conform-mapping-components.html
试图在我的项目中重现它并得到奇怪的行为。
我有两个实体:
为其映射:
拿来:
简单获取:
我得到了这个查询:
为什么我有 2 个查询?如何通过连接获得一个查询?
c# - 更新到 NHibernate 3.2 后“找不到请求的 .Net Framework 数据提供程序”
我使用 NHibernate 3.1 并更新到 3.2 版。我也使用 confOrm 1.0.1.5 并更新到 2.0.0.0vVersion。我的 Firebird NET Provider 版本是 2.7。我对我的代码进行了一些修改,因为 confOrm 不再包含ConfOrm.Mapper
。当我尝试进行选择时,它返回以下错误:
任何帮助表示赞赏,谢谢!
c# - 使用扩展类映射
我正在使用 NHibernate 和ConfORM来映射我的域实体。
假设以下类:
我不需要在派生类中重复NHibernate 表字段,而是使用基类,如图所示。
我的 ConfORM 设置:
关于如何解决这个问题的任何想法都可以?
nhibernate - 在 ConfORM 中编写自定义应用程序时检查现有映射
我正在为 ConfORM 编写我的第一个自定义列名称应用程序。
如何检查另一列是否已被映射具有相同的映射名称?
这是我到目前为止所拥有的:
我需要将生成的列名缩短到少于 30 个字符以适应 Oracle 的 30 个字符限制。因为我正在缩短列名,所以相同的列名可能会生成两个不同的属性。我想知道何时发生重复映射。
如果我不处理这种情况,ConfORM/NHibernate 允许两个不同的属性“共享”相同的列名——这显然会给我带来问题。
nhibernate - 休眠。符合。在联结表中设置复合主键
我有两个表,我想创建一个联结表。我有这个映射。
和
它创建了联结表,但没有设置为主键*,复合键 {ProjectId , UserId}
我究竟做错了什么?
提前谢谢。
*当我被告知有关我的代码时,我也很奇怪地理解它。创建的表是由这个 sql 代码创建的:
我也希望像下面这样一行:
编辑2:(为了更好的视图)
sql-server-2008 - Nhibernate error: The length of the byte[] value exceeds the length configured in the mapping/parameter
I want to save files using Nhibernate with Conform to MSSQL 2008.
I`ve found article how to do it and implement everything. http://harmonypsa.blogspot.com/2013/07/using-filestream-with-sql-server-and.html
When I run my code I get the exception: "The length of the byte[] value exceeds the length configured in the mapping/parameter." Here is my class:
My mapping:
Any ideas?
nhibernate - 通过代码使用 Nhibernate 的映射时在配置文件中的映射
我想通过代码使用映射,所以我有一个Employee ( namespace NHibernateTests.Classes
) 类和一个EmployeeMappings ( namespace NHibernateTests.Mappings
)类
我的整个 nhibernate 配置设置在一个 xml 文件hibernate.cfg.xml
中,当前如下所示:
这给了我运行时错误:没有持久性:NHibernateTests.Classes.Employee
我尝试(并出错)了一些mapping
元素设置,但没有运气。我阅读了如何为 hbm.xml 元素设置资源,但找不到by code
映射的答案。
elixir - 凤凰框架部署问题
我正在尝试使用 exrm 和 conform 部署 Phoenix 应用程序。在本地 Ubuntu 上测试该版本有效。但是当我在服务器上运行相同时,就会失败。我无法理解确切的原因。
{error_logger,{{2016,1,30},{7,45,44}},"协议:~tp:注册/监听错误:~tp~n",["inet_tcp",etimedout]} {error_logger,{ {2016,1,30},{7,45,44}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.22.0>},{registered_name, []},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,344}]},{proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,240}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#端口<0.380>,<0.19.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,27},{减少,842}],[]]} {error_logger,{{2016,1,30},{7,45,44}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error}, {reason,{'EXIT',nodistribution}},{罪犯,[{pid,未定义},{id,net_kernel},{mfargs,{net_kernel,start_link,[['app@127.0.0.1',longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker} ]}]} {error_logger,{{2016,1,30},{7,45,44}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown, {failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}},{offender,[{pid,undefined},{id,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent} ,{shutdown,infinity},{child_type,supervisor}]}]} {error_logger,{{2016,1,30},{7,45,44}},crash_report,[[{initial_call,{application_master,init,[ 'Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup ,{关机,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]} ,{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT' ,<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{ heap_size,376},{stack_size,27},{reductions,117}],[]]} {error_logger,{{2016,1,30},{7,45,44}},std_info,[{application,kernel },{退出,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}},{ type,permanent}]} {"内核 pid 终止",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}}"}
崩溃转储正在写入:erl_crash.dump...内核 pid 终止 (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}} }}},{k
elixir - 有没有办法在开发过程中使一致性工作?
我在 Phoenix 应用程序中使用了符合配置。这需要一个 exrm 版本。出于开发目的,我们希望使用相同的配置技术,但每次进行更改时都不会生成版本。有没有办法在运行时使用 Conform mix phoenix.server
?