-
Notifications
You must be signed in to change notification settings - Fork 936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C# 8/11 Static interface members support #3295
Comments
Hi @NikitaEgorov can you please give us some examples? Is your class to be proxied has generic operator? Or what? |
@hazzik Luxoft/BSSFramework@main...negorov/nhib-3295 Steps: Create Interfacepublic interface ICreator
{
static abstract void Create();
} Implement Interface in "reference class"public partial class BusinessUnitType : ICreator
{
public static void Create()
{
// Actively doing nothin
}
} Mapping <class name="SampleSystem.Domain.BusinessUnit" table="BusinessUnit">
<id name="Id" column="id" type="Guid" access="field.camelcase">
<generator class="guid.comb" />
</id>
<version name="Version" generated="never" type="Int64">
<column name="Version" not-null="false" sql-type="bigint" />
</version>
<many-to-one name="BusinessUnitType" column="businessUnitTypeId" class="SampleSystem.Domain.BusinessUnitType" access="field.camelcase" />
</class>
<class name="SampleSystem.Domain.BusinessUnitType" table="BusinessUnitType">
<id name="Id" column="id" type="Guid" access="field.camelcase">
<generator class="guid.comb" />
</id>
<version name="Version" generated="never" type="Int64">
<column name="Version" not-null="false" sql-type="bigint" />
</version>
<property name="Name" column="name" unique-key="UIX_nameBusinessUnitType" access="field.camelcase" />
</class>
Load "parent" class from database without fetch
|
Thank you.
Feel free to change it to .NET 7.
This is what I suspected. |
Same happens with C# 8 static interface members |
When I tried to use C# 11 general math I got an exception 😢
The text was updated successfully, but these errors were encountered: