profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/moh-hassan/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

commandlineparser/commandline 3061

The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support

moh-hassan/odata2poco 38

generate POCO classes from OData service

moh-hassan/cloudbuilder 0

cloudbuilder is a test repository

moh-hassan/dotnet-tools 0

A list of tools to extend the .NET Core command line (dotnet)

moh-hassan/DynamicExpresso 0

C# expressions interpreter

moh-hassan/jxrlib 0

Fork from jxrlib.codeplex.com

moh-hassan/MoreLINQ 0

Extensions to LINQ to Objects

moh-hassan/nuget-dependencies-of-netstandard-library-bug 0

This repository reproduces a bug with classic .NET application that references .NET Standard library with NuGet dependencies

moh-hassan/odataorg.github.io 0

Staging site and collaboration repository for http://www.odata.org

issue closedmoh-hassan/odata2poco

Support .NET 5+

The dotnet-o2pgen tool does not run unless version 2.1.0 specifically of the .NET Core framework is installed. That means that even if one has .NET Core 3.x or .NET 5 or .NET 6 installed, the tool will not run until .NET Core 2.1.0 is installed. It is expected that the tool should be able to run on 2.1.0 or newer versions of the .NET Core framework, including .NET 5+.

closed time in 21 days

coldacid

issue commentmoh-hassan/odata2poco

Support .NET 5+

Nuget package 4.0.0 is published supporting NET5.

coldacid

comment created time in 22 days

created tagmoh-hassan/odata2poco

tagv4.0.0

generate POCO classes from OData service

created time in 23 days

push eventmoh-hassan/odata2poco

moh-hassan

commit sha d09cfd8fb46e5b3d238f9dfbf930a781a7fedec2

Move to NET5

view details

moh-hassan

commit sha 2962e266223c3886c83f22379912f711caab2007

Move to NET5

view details

push time in 23 days

push eventmoh-hassan/odata2poco

moh-hassan

commit sha d2474e739da88b6bf8a44939590d918c04ff9334

Resolve Null Reference issues

view details

push time in 23 days

GollumEvent

push eventmoh-hassan/odata2poco

moh-hassan

commit sha 349b6a5b34d56c66c23e7174a01eeb8250fa23cf

Resolve Null Reference issues

view details

push time in 24 days

create barnchmoh-hassan/odata2poco

branch : Net5Move

created branch time in 24 days

issue commentmoh-hassan/odata2poco

Support .NET 5+

Thanks for suggestion. I'll prepare a new version that support NET5 and excluding netcore 2.1.0

coldacid

comment created time in 24 days

issue commentmartinjw/dbschemareader

code gen error while using Oracle ODP.net provider.

I expect this issue is fixed using commit 944f175 It's tested using Oracle.ManagedDataAccess.Client v19.12.0 and code generation is working fine.

sendreams

comment created time in 24 days

startedmartinjw/dbschemareader

started time in 24 days

issue commentmartinjw/dbschemareader

Converting Oracle schema in oracle 19c to SqlServer, raise an Exception: System.NullReferenceException: Object reference not set to an instance of an object.

Thanks @martinjw for commit; I forget to mention also, line 38 need modification :) (these only lines 36,38 that include IndexType)

   if (pkIndex != null &&
                    pkIndex.IndexType?.IndexOf("NONCLUSTERED", StringComparison.OrdinalIgnoreCase) != -1)

Just a suggestion, It's best if the root null issue of IndexType is fixed by setting initial value as below:

public string IndexType { get; set; } = "UNDEFINED"; 

 (in file DataSchema\DatabaseIndex.cs, line  47)     

In this case, no need for using null operator ? in line 36,38 I tested both solution in my side using vs 2019 for sqlserver and it's working fine. I couldn't run the test solution to find if there is a side effect for the second solution because I don't have your develop environment. You can prove the second solution.

moh-hassan

comment created time in 25 days

issue openedmartinjw/dbschemareader

Converting Oracle schema in oracle 19c to SqlServer, raise an Exception: System.NullReferenceException: Object reference not set to an instance of an object.

I try to convert HR oracle schema of Oracle database v19c to SqlServer using the nuget packages: DatabaseSchemaReader v2.7.9 and ODAC Oracle.ManagedDataAccess.Client v19.12.0 in a console net472, with the next code:

string connectionString="Data Source=pdb1;User Id=HR;Password=hr;";
string owner="HR";
        
 string providername = "Oracle.ManagedDataAccess.Client";
 var dbReader = new DatabaseReader(connectionString, providername);
dbReader.Owner = owner;
var schema = dbReader.ReadAll();
var gen = new DdlGeneratorFactory(SqlType.SqlServer).AllTablesGenerator(schema);
var text = gen.Write(); // <<this raise the error

I get error Exception:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at DatabaseSchemaReader.SqlGen.SqlServer.ConstraintWriter.<>c.<WritePrimaryKey>b__3_0(DatabaseIndex x)
   at System.Collections.Generic.List`1.Find(Predicate`1 match)
   at DatabaseSchemaReader.SqlGen.SqlServer.ConstraintWriter.WritePrimaryKey(DatabaseConstraint constraint)
   at DatabaseSchemaReader.SqlGen.SqlServer.TableGenerator.ConstraintWriter()
   at DatabaseSchemaReader.SqlGen.TableGeneratorBase.Write()
   at DatabaseSchemaReader.SqlGen.SqlServer.TableGenerator.Write()
   at DatabaseSchemaReader.SqlGen.TablesGeneratorBase.Write()
   at OraclePs.SchemaMigration2.OraSchema2SqlServer(String connectionString, String owner) in 
.....

When debugging using the source, the next errror is fired

System.NullReferenceException: 'Object reference not set to an instance of an object.'
DatabaseSchemaReader.DataSchema.DatabaseIndex.IndexType.get returned null.
and point to line 36:
var pkIndex = Table.Indexes.Find(x => x.IndexType.IndexOf("PRIMARY", StringComparison.OrdinalIgnoreCase) != -1);     
                                        ^^^^^^^

It seems that IndexType is not initialized and cause this error.

Problem Resolution using Null-conditional operators ?. in the class ConstraintWriter.cs, line 37 solve the problem

var pkIndex = Table.Indexes.Find(x => x.IndexType?.IndexOf("PRIMARY", StringComparison.OrdinalIgnoreCase) != -1);

created time in a month

issue commentmicrosoft/vstest

Console.WriteLine calls during dotnet test are not emitted to the console on Windows

@stevenbrix It's working for me in NUnit suit and I get output when the test passes. I normally run test using powershell ISE. All Console.WriteLine in source code or Test Suit are displayed for test pass or fail. I'm using the packages above. Can you try visisbility Normal dotnet test -l "console;verbosity=normal"

livarcocc

comment created time in 2 months

issue commentdotnet/runtime

Consider Span<char> overloads on Regex classes

Four years passed and the issue is still open. I hope it's implemented in NET6.

danmoseley

comment created time in 2 months