Questions tagged [guid]
A GUID (Globally Unique IDentifier) is a unique reference number used as an identifier in computer software.
1,955
questions
0
votes
1
answer
29
views
Convert GUID to 8-4-4-4-12 format in javascript [duplicate]
I am looking to convert a GUID such as 18d874986a114520bd29466a446a50eb to the format 18d87498-6a11-4520-bd29-466a446a50eb
Is there a function in Javascript for doing this?
I googled a bit and looks ...
0
votes
0
answers
30
views
Why does EF insert the same Guid Ids in different fileds?
I've a Page entity dependent on Investor entity as investor creates a page:
public class Page
{
[Required, DatabaseGenerated(DatabaseGeneratedOption.Identity), Key]
public Guid Id { get; set; }...
0
votes
1
answer
25
views
Using LIKE with index over GUID columns in Oracle
I'm building system, in which I decided to use GUIDs as primary keys in many tables. I took this decision in order to be able to develop tool for integration tests. If I have primary key generated ...
-1
votes
0
answers
7
views
Get the handle of the driver using GUID in python
How to call a driver using GUID as their input to get the path and handle of the driver
-1
votes
1
answer
40
views
GUID to Hex Conversion Formula in Excel
I have an excel of Millions of GUIDs in a column in Excel.
I want to convert it to HEX. Please advise the best way possible to do so.
if there is any formula for this, that would be awesome.
Sample ...
-1
votes
0
answers
21
views
Teamviewer MID Attraction GUID algorithm
since i found some of machines with duplication of Teamviewer IDs, after contacting TV support they provided MID attraction GUID in the regedit, could you please explmain how can i understand the ...
0
votes
1
answer
107
views
Generate the same computer hardware id. (CHID) like computerhardwareids.exe from Windows SDK
INTRODUCTION
This thread should be the ending chapter for this first thread from 2014 and this second one from 2017.
To cut the story short, you simply need to know that the Microsoft Windows SDK ...
1
vote
1
answer
34
views
Issues converting GUID to BCL HI/LO
I am having troubles converting GUIDs to gRPC/protobuf-net bcl-Guids (bcl.proto with Guid definition).
I did find two artilces such as:
Harmonize protobuf-net bcl.Guid's HI/LO with sql ...
0
votes
0
answers
9
views
Bad idea to duplicate GUIDs when replicating a database?
I have the following scenario and I would like to know if my logic is sound or not.
Lets say I have a master DB that among others contains a people table. I also have several other DBs that contain an ...
0
votes
0
answers
179
views
Refit REST library - Unable to post List<Guid> in Body
I'm unable to post List through refit. Here's the interface declaration:
[Post("/api/Url/{id}")]
[Headers("Content-Type:application/json")]
Task<Model> PostMethod([Body(...
1
vote
1
answer
59
views
.NET5 Web Api how to allow Guid in any format
I have a Dto that looks like this:
public class CreateObjectDto
{
public Guid SomeGuid { get; set; }
}
problem I'm having is that default Guid converter does not allow values ...
0
votes
0
answers
24
views
RT.COMB obtain comb from timestamp
I'm using https://github.com/richardtallent/RT.Comb and wondering if it's possible to convert a timestamp to the exact original comb guid.
SqlCombProvider provider = new(new UnixDateTimeStrategy(), ...
0
votes
1
answer
58
views
Filter a list based on another list containing IEnumerable<Guid> using linq
I am looking for a way to filter a list based on another list that contains only the ids. If List A does not contain any of the ids in listOfGuids, get the filtered List that does not contain the ids
...
0
votes
0
answers
69
views
Need help understanding how this JS code is generating UUID [duplicate]
I got this piece of code for generating UUID in case the browser doesn't support crypto.randomUUID.
I need help understanding how this works. A step by step process would be much appreciated. Would ...
0
votes
0
answers
35
views
Same Guid for same prefab
I have a client-server module and I send the server state to the client using JSON (some transforms data). Additionally, I have a save and load system. I am using Guid for ID ( Guid.NewGuid().ToString(...
0
votes
0
answers
16
views
Using the following hashing method to store a database object
I would like to create a valid variable identifier that can be used across any database object. It seems Oracle has the strictest requirements and only allows 30 chars for a (non-DB) object name, so ...
1
vote
0
answers
9
views
Show user name on chatlist
I have created a lan messenger. It can connect to multiple client. Individual window is created to make conversation with each user. Popup on receiving is also done. But the problem is how to show ...
3
votes
1
answer
136
views
How can I get the GUID of my disc partitions?
I'm using WMI to get all disk information, like drives, drive letters, etc. but I have not found out how I could get the UUID/GUID of each partition.
0
votes
2
answers
49
views
How to implement this ASP.NET MVC solution using C# that uses two models and a many-to-many table?
I need to implement the following solution:
A user is in the drawing record form. The user clicks the "Assign Project" button in the drawing record form, which saves the drawing record as ...
0
votes
1
answer
44
views
How to use RequiredIf with a property of GUID type?
I have a property of string type called Address. I have a second property of GUID type called ProjectTypeId. I want to make the Address property required if ProjectTypeId equals a certain hardcoded ...
-1
votes
1
answer
63
views
How to implement GUID toByteArray? [duplicate]
How does Guid.ToByteArray() work in c#.Can someone help me understand how does the following Guid token gets converted to ByteArray.
Guid: 35918bc9-196d-40ea-9779-889d79b753f0
guid.toByteArray: C9 ...
0
votes
1
answer
63
views
In WebAPI POST method how to pass Id which is set to Uniqueidentifier in database ASP.NET?
I have a Users table in database, its Id PK is set to Uniqueidentifier. Now using the Web API I am adding a new user through postman into database. when I add the first record it adds the user into ...
-1
votes
4
answers
88
views
Can I rely on GUID to be not parseable to int? [closed]
I have an entity that has a field that can be either an integer stored as a string or a GUID. I execute different methods based on if that field is a GUID or an integer. Can I be sure that int....
0
votes
0
answers
37
views
How to mock a value in the python test? (Random guid)
I'm doing tests in Python.
In the official class I have a value which is a randomly generated guid. In the testing class I would like to mock this guid because I am taking this error (divergence from ...
0
votes
0
answers
33
views
Create Guid in Typescript and parse in C# [duplicate]
How to create a Guid using a number[16] in Typescript which when passed over a network API call, the server should be able to get the original array back. The server side code is using C#. They would ...
0
votes
0
answers
56
views
Why GUID right stick in gamepad is GUID_ZAxis for XAxis and GUID_RzAxis for YAxis?
I'm have some problems with the axles of my gamepad.
I am not fully aware of the reasons for this, but there is my code for DIOBJECTDATAFORMAT, DIDATAFORMAT, and my custom DIGAMEPAD, describing the ...
3
votes
0
answers
88
views
SaveChangesAsync not saving a specific value when it's assigned
I've ran into an issue I can't quite seem to figure out. Here I have a ticket item which is assigned to user. I have implemented a feature to be able to change the user. The user is changed and ...
0
votes
2
answers
100
views
.NET 6 Swagger guid generates "https://localhost:5001/api/sth/%7Bid%7D"
I have an issue with Swagger.
When I try to pass a query as a parameter it malforms the URL-> https://localhost:5001/api/sport/%7Bid%7D
The expected result is this one:
https://localhost:5001/api/...
0
votes
0
answers
72
views
go-mssqldb returns incorrect Id value
I'm using github.com/denisenkom/go-mssqldb package to access my MS SQL database.
However, when I'm trying to read Id value (uniqueidentifier) from the database, it returns another Id, than recorder in ...
0
votes
3
answers
84
views
Generating Class in c# that inherits a generic class which uses type parameter using Telosys code generation tool
I have a need to generate C# code for my Country entity that will inherit from a base Entity class providing stong typed argument to denote the fact that my PK (@id) is of type Guid that is Id ...
0
votes
0
answers
72
views
Trouble Saving Nullable Guid to Database EFCore MySql
I have a property in the entity model
public Guid? TestId { get; set; }
When saving an object with a null TestId to the database, it does not save as null, it comes up in the database as an Empty Guid ...
0
votes
1
answer
51
views
Java padding UUID with 0's for missing places in standard format
The UUID input defined in an JAVA API is padding 0's when tried with invalid UUID.
For example f185d2ab-50-4fd0-bbb3-af04543b6f05 is being converted to f185d2ab-0050-4fd0-bbb3-af04543b6f05.
Observe ...
0
votes
1
answer
60
views
Create Procedure to Insert row & Return SYS_GUID() PK in Oracle SQL
My team has two Oracle DB tables - one for capturing service call requests and responses, another for logging certain kinds of errors. Currently the two tables are not related. Both of them use ...
1
vote
0
answers
316
views
Migrating old GUID (Symfony <= 5.2) to new UUID Component (Symfony >= 5.3) as Entity ID
I started with Symfony 4 and used the Security Components from the "Get Started" tutorial. Everythings went fine. I don't like Integer as ID, so switched to UUID as the ID if the Entity.
...
1
vote
1
answer
39
views
How can I make the system empty value from the guid null?
In the Build Query I have a query like this:
var characteristicPrices = await scope.BuildQuery<CharacteristicPrice, CharacteristicVersion, CharacteristicPrice>((op, ccp, cv) => op.Select(op....
-4
votes
2
answers
4k
views
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) with valid c# constructor [closed]
var username = User.FindFirst(ClaimTypes.Email)?.Value;
var userid = new Guid(username);
Why is this causing a Guid FormatException to occur?
Guid should contain 32 digits with 4 dashes (xxxxxxxx-...
0
votes
1
answer
28
views
Multiple Sets in PowerApps OnSelect doesn't work
I want to generate an ID using GUID in PowerApps and send this to the flow in PowerAutomate.
The first sample code works fine, which means, that everything is Ok.
The Second sample code is not ...
0
votes
1
answer
85
views
'Cannot perform '=' operation on System.Guid and System.String.'
I'm trying to query a BindingSource with multiple Foreign Key values. The Foreign Keys are GUIDs and when I apply a filter like
"product = '1c0f4868-5d96-4653-a7f7-d83eab5ecaa6'"
it works ...
0
votes
0
answers
62
views
Store GUID correctly as UUID in a SQL Server database [duplicate]
I generate a GUID in C# and store it in a SQL Server dable as UUID as follows (the GUID is UUID type):
string guid = Guid.NewGuid.ToString();
using (var command = new ...
3
votes
2
answers
218
views
C++ Creating GUID from unsigned char array
I have a function that takes as input an array of unsigned char (16 values exactly) and creates a GUID (from GUID struct) by parsing all values to hexadecimal and passing a guid-formatted string to ...
0
votes
1
answer
280
views
Java Guid Convert into Oracle Raw(16) String
How do I convert a JSON Guid to Oracle Raw(16) String Data Type?
In C# Net, it is Using ToByteArray().
What is the equivalent in Java 8?
The following website will convert, however I need underlying ...
0
votes
0
answers
52
views
Cannot figure out syntax for Expression.Call for Guid.Equals going into a predicate
Trying to write a way to sort of dynamically look at data passed to me via json (I don't have it strictly typed). I have been mulling this over for days and I am 100% unsure of the syntax, but I get ...
0
votes
0
answers
52
views
C# how to resolve a GUID to a folder path? [duplicate]
I'm using some com objects and the path returned is ::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\Documents.library-ms.
Is there a C# function that can automatically resolve this to its normal path
C:\...
0
votes
1
answer
47
views
C# store/load guid list in a file [closed]
Is there a posiblity to store and load a guid list in a file?
List<Guid> targetFaceIds = new List<Guid>();
foreach (var imageFileName in targetImageFileNames)
{
...
0
votes
0
answers
20
views
Convention of defining GUID as so many small fragments in Windows programming
Ref: https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-and-exporting-new-guids
// lets use this guid 09343630L-AF9F-11D0-929F-00C04FC340B1
DEFINE_GUID( GUID_BUS_TYPE_PCMCIA, ...
0
votes
0
answers
46
views
Wix - what happens if you generate a GUID that already exists on a users machine?
As part of creating an .msi (An installer program), sometimes one has to generate a unique GUID. It is hard-coded, and used to uniquely identify the project, or folders (See here for an example).
I ...
0
votes
0
answers
55
views
Refer to a File by NTFS Object Identifier (GUID) in VB.Net
I would like to know how, using VB.NET, to refer to a file by it's NTFS Object Identifier (GUID, or formally "16-byte buffer").
I found and studied this article from Raymond Chen on MS ...
0
votes
1
answer
58
views
Pulling GUIDs out of a JSON string in SQL Server
I need to pull some GUIDs out of a json string in SQL Server. An example of what the string might look like is as follows:
{"priorityArea":"a273b556-f0ab-4d7a-97ac-ddb7dab06130",&...
1
vote
1
answer
273
views
How to query MongoDb for partial Id matches with Guid Id?
I have an App written in C#, where the DB is MongoDB. the Id object is C# Guid, so the _id field in the DB looks like:
"_id": {
"$binary": {
"base64": "...
1
vote
0
answers
74
views
INSERT INTO two tables usnig select guid
Using Oracle, my query is
insert all
into table_a values(id, name)
into table_a_a values(id, name)
select SYS_GUID() AS id, name from table_source
'id' field is both unique key in table_a, and ...