小编Mah*_*lil的帖子

GPS Socket 通讯 (CONCOX)

1 ] 1我有一个应该发送 GPRMC 数据的 GPS 设备,但它需要登录包查看数据表设备数据表

在此处输入图片说明

我可以收到登录信息 787811010 XXX739050313XXX 20200001000E0EAD0D0A

     IMEI Sart With XXX
Run Code Online (Sandbox Code Playgroud)

数据包与示例图像不同

我有 2 个问题 1-根据收到的数据和示例我应该发送什么 2-如何计算错误检查 谢谢

编辑

public static void StartListening()
{
    // Data buffer for incoming data.
    byte[] bytes = new Byte[1024];

    // Establish the local endpoint for the socket.
    // The DNS name of the computer
    // running the listener is "host.contoso.com".
    IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
    IPAddress ipAddress = ipHostInfo.AddressList[0];
    IPAddress local = IPAddress.Parse("My IP");
    IPEndPoint localEndPoint = new IPEndPoint(ipAddress, …
Run Code Online (Sandbox Code Playgroud)

c# sockets

3
推荐指数
1
解决办法
7448
查看次数

使用 HttpClient 将 IFormFile 发送到 API Alwyes Null ASP.net Core2.2

我为附件创建了 API,如果我发送文件,它应该接收带有文件的模型信息,如果我没有发送模型数据显示的文件,则模型为空

模型

public class AttachmentFilesViewModel
{
    public long Id { get; set; }
    public string FileName { get; set; }

    public string FileExt { get; set; }
    public IFormFile files { get; set; }
    public AttachmentViewModel AttachmentViewModel {get;set; }

}
Run Code Online (Sandbox Code Playgroud)

型号2

 public class AttachmentViewModel
{
    public long Id { get; set; }
    public string Type { get; set; }


    public long TypeID { get; set; }
    public string FileDesc { get; set; }
    public List<AttachmentFilesViewModel> attachmentFiles {get;set; }

} …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-core

1
推荐指数
1
解决办法
4495
查看次数

EF Core 无效的列名(外键)

我正在使用 EF Core 2.2 错误代码

var ClientCase= _context.Client_Cases.Include(a=>a.Case_Sessions). FirstOrDefault(x => x.Id == id);
Run Code Online (Sandbox Code Playgroud)

错误

System.Data.SqlClient.SqlException: '无效的列名 'Client_CaseId'。无效的列名“Case_LevelId”。无效的列名“Client_CaseId”。无效的列名“Court_CircleId”。无效的列名“Court_HallId”。

实体

1- 父 Client_Case

public class Client_Cases
{
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public long Id { get; set; }        
    public string Opponent { get; set; }
    public DateTime? StartDate { get; set; }
    public DateTime Recieve_Date { get; set; }
    [ForeignKey("Clients")]
    public long? ClientID { get;set;}
    public Clients Client { get; set; }
    [ForeignKey("Case_Levels")]
    public long? LevelID { get; set; }
    public virtual Case_Levels Case_Levels …
Run Code Online (Sandbox Code Playgroud)

c# core .net-core ef-core-2.2

0
推荐指数
1
解决办法
3745
查看次数

标签 统计

c# ×3

.net-core ×1

asp.net-core ×1

core ×1

ef-core-2.2 ×1

sockets ×1