升级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=aa95f207798dfdb4
的FileLoadException
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 aFileLoadException
forNHibernate, 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
最满意答案
你想从最大的目标设备分辨率开始,因为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.
相关问答
更多-
启动屏幕XIB:缺少宽度/高度限制(Xcode 6)(Launch Screen XIB: Missing Width / Height Constraints (Xcode 6))[2024-01-20]
编辑: 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 ...
-
UIView没有出现在xib上(UIView not appearing on xib)[2023-10-04]
问题是我没有将视图连接到控制器。 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的其他类,现在你可以通过使 ...
-
如何使用XIB使SuperView与Subview的框架匹配?(How to user XIB make SuperView match Subview's frame? (Xcode 8))[2023-07-05]
您应该像这样设置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 ...
-
在iPhone5和iPhone4的xib中处理不同尺寸的图像?(Dealing with different size images in a xib for iPhone5 versus iPhone4?)[2023-03-22]
这是一个实际上可以帮助您的链接。 保存启动图像,如果您在文件名末尾添加“-568h@2x.png”,iOS不会自动选择正确的图像。 上面的链接中提到了一些辅助方法,可以让您的工作变得轻松。 我已经采用了上面提到的链接中的代码,这里是Obj-C的辅助函数: -(BOOL) IsTall { return ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) && ([[UIScreen mainScre ... -
如何根据XIB中的子视图大小调整超视图的高度?(How to adjust super view 's height base on subview's size in XIB?)[2023-05-31]
使用自动布局,您需要执行以下操作: 确保您没有为任何子视图添加固定宽度和/或高度约束(取决于您想要动态调整的尺寸)。 我们的想法是让每个子视图的内在内容大小决定子视图的高度。 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. ...