首页 \ 问答 \ 升级3.0后,为Castle Windsor配置NHibernate 3.3.1(Configure NHibernate 3.3.1 for Castle Windsor after 3.0 upgrade)

升级3.0后,为Castle Windsor配置NHibernate 3.3.1(Configure NHibernate 3.3.1 for Castle Windsor after 3.0 upgrade)

在现有的项目中,我刚将NHibernate从3.0升级到3.3。 升级并不像我想象的那么直截了当,但是前者与我在SO上发现的MySQL连接器不兼容。

问题是我不能再使用NHibernate.ByteCode.Castle.ProxyFactoryFactory因为它需要NH 3.0(我得到了NHibernate, Version=3.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4FileLoadException NHibernate, Version=3.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4 )。

看看NH 3.3 zip里面,我看到没有BytecodeProvider。 在NH 3.0中,有一个“RequiredForLazyLoading”目录,我把所需的一切都拿走了。

那么,我应该在NH 3.3.1中做什么来启用延迟加载? 我对Castle很满意,我刚升级到最新版本3.1


In an existing project I just upgraded NHibernate from 3.0 to 3.3. The upgrade was not as straightforward as I thought, but is required by a former incompatibility with MySQL connector I found on SO too.

The problem is that I can't use NHibernate.ByteCode.Castle.ProxyFactoryFactory anymore because it requires NH 3.0 (I got a FileLoadException for NHibernate, Version=3.0.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4).

Looking well inside NH 3.3 zip, I saw there is no BytecodeProvider. In NH 3.0 there was a "RequiredForLazyLoading" directory where I took everything I needed.

So, what should I do in NH 3.3.1 to enable lazy loading? I was comfortable with Castle, that I just upgraded to latest version 3.1


原文:https://stackoverflow.com/questions/12329798
更新时间:2023-04-27 21:04

最满意答案

你想从最大的目标设备分辨率开始,因为iPad Pro是2732x2048 @ 2x,1024x1024肯定会在该设备上看起来模糊。

检查此链接以获取设备分辨率


You want to start with the largest target devices resolution and since the iPad Pro is 2732x2048@2x, 1024x1024 is most certainly going to look blurry on that device.

Checkout this link for device resolutions

相关问答

更多
  • 编辑: Xcode 7+默认为启动屏幕的Storyboard文件。 如下所述,与XIB不同,Storyboard文件允许您为根UIView设置宽度和高度约束。 当他们在根处有一个UIView时,我无法找到官方解释为什么XIB表现得那样。 对我来说看起来很奇怪的是,我们提供的默认设置( LaunchScreen.xib )的设置与我们习惯使用的故事板完全不同。 我选择的第一个解决方案是使用Storyboard绘制Launch Screen而不是XIB: 删除LaunchScreen.xib 创建LaunchS ...
  • 你想从最大的目标设备分辨率开始,因为iPad Pro是2732x2048 @ 2x,1024x1024肯定会在该设备上看起来模糊。 检查此链接以获取设备分辨率 You want to start with the largest target devices resolution and since the iPad Pro is 2732x2048@2x, 1024x1024 is most certainly going to look blurry on that device. Checkout t ...
  • 问题是我没有将视图连接到控制器。 The problem was that I didn't connect the view to the controller.
  • 将应用程序转换为通用后: - 您已创建具有相同自定义类的两个不同的XIB 。 像贝娄图像: - iphone-> xib-select fileOwner 现在为Ipad ite名称PhotoViewController_ipad创建新的xib。 现在只需打开它新创建的XIB - >点击文件所有者--->看起来像: - 它的右侧自定义类空白放在那里PhotoviewCintroller 并将文件所有者连接到View 现在你有两个Xib和Iphone相同的Class One和Ipad的其他类,现在你可以通过使 ...
  • 您应该像这样设置redView约束 - 现在像这样设置标签的约束 - 并且不要忘记将label的noOfLines设置为0。 希望这可以帮助! You should set redView constraint like this - Now set label's constraint like this - And don't forget to set label's noOfLines to 0. Hope this helps!
  • 你在严重的误解中运作。 .xib文件中视图的大小与加载时显示的大小无关 。 要在加载时设置大小,请在加载时设置一些影响大小的属性,例如preferredContentSize 。 You are operating under a serious misconception. The size of the view in the .xib file has nothing to do with the size at which it will be shown when it loads. To set ...
  • 尝试设置视图的所需帧,然后调用layoutIfNeeded: UIView *view = [[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil][0]; CGRect finalFrame = CGRectMake(0, 0, 90, 90); view.frame = finalFrame; [view layoutIfNeeded]; UIGraphicsBeginImageContextWithOptions(fi ...
  • 这是一个实际上可以帮助您的链接。 保存启动图像,如果您在文件名末尾添加“-568h@2x.png”,iOS不会自动选择正确的图像。 上面的链接中提到了一些辅助方法,可以让您的工作变得轻松。 我已经采用了上面提到的链接中的代码,这里是Obj-C的辅助函数: -(BOOL) IsTall { return ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) && ([[UIScreen mainScre ...
  • 使用自动布局,您需要执行以下操作: 确保您没有为任何子视图添加固定宽度和/或高度约束(取决于您想要动态调整的尺寸)。 我们的想法是让每个子视图的内在内容大小决定子视图的高度。 UILabel带有4个自动隐式约束,它们(小于所需优先级)尝试将标签的框架保持在适合所有文本所需的确切大小。 确保每个标签的边缘严格连接(具有必需的优先级约束)到彼此的边缘及其超视图。 你想确保如果你想象其中一个标签的大小增加,这将迫使其他标签为它腾出空间,最重要的是迫使superview扩展。 仅向超级视图添加约束以设置其位置,而不 ...
  • 不会。在执行任何代码之前显示启动图像(或在本例中为启动xib)。 启动完成后,启动图像将替换为第一个视图。 此时是您可以执行代码以更改屏幕内容的第一时刻。 No. The launch image (or in this case the launch xib) is shown before any code can be executed. The launch image is replaced with your first view when the launching is finished. ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)