我有以下几点:
class Car < ActiveRecord::Base
has_one :driver
end
class Driver < ActiveRecord::Base
belongs_to :car
has_one :license, :as => :licensable
end
class License < ActiveRecord::Base
belongs_to :licensable, :polymorphic => true
end
例如,汽车有一个司机,他有一个驾照(驾照是多态的-在这种情况下,因为它可以与其他对
试图在VS 2019年中安装最新的Aspose.Cells包。让一个朋友尝试同样的事情,同样的错误。有驾照。我遗漏了什么?
Severity Code Description Project File Line Suppression State
Error The feed 'nuget.org [https://api.nuget.org/v3/index.json]' lists package 'Aspose.Cells.22.3.0' but multiple attempts to download the nup
下面是我的示例表:
CREATE TABLE demo1
(
ProviderID int NOT NULL,
ProviderClientID int NOT NULL,
ClientIdentifier nvarchar(9) NOT NULL,
ClientIdentifierTypeID int NOT NULL
);
INSERT INTO demo1 (ProviderID, ProviderClientID, ClientIdentifier, ClientIdentifierTypeID)
VALUES
(5, 7, 123444567,
我正在尝试读取驾照背面以解码背面的pdf417条形码。我尝试用以下代码使用zxing.net:
var reader = new BarcodeReader();
reader.Options.PossibleFormats = new List<BarcodeFormat>() { BarcodeFormat.PDF_417 };
var barcodeBitmap = (Bitmap)Image.FromFile("bc.png");
var result = reader.Decode(barcodeBitmap);
这张图片是我从网上抓取的一张测试图片:
我已经在我的数据库中有驱动程序和LicenseCodes,其中许多驱动程序可以有许多许可证代码。
这也是许多不同的地理区域(例如,美国的州),有多个驾照代码的情况,所以我需要识别每个驾照代码的地区。
我的老板建议我建立一个连接表,简单地列出外键。这个类的POCO模型看起来像这样(我使用虚拟属性,因为我很懒):
public class CountryLicenseCodes
{
public virtual LicenseCode LicenseCode { get; set; }
public virtual Country Country { get; set; }